[pmwiki-users] help with (:if and :) statement

Tegan Dowling tmdowling at gmail.com
Thu Apr 19 11:34:32 CDT 2007


(:toc:) numbers the headings on the page, and numbers the links to
them in the toc
(:*toc:) doesn't number the headings on the pge, and makes a bulleted
list of the links in the toc

On 4/19/07, christian.ridderstrom at gmail.com
<christian.ridderstrom at gmail.com> wrote:
> On Thu, 19 Apr 2007, Patrick R. Michaud wrote:
>
> >> This seems useful... here's a modified version (untested though) that I
> >> assume goes into <group>.GroupHeader.
> >>
> >>      (:if expr ! equal "{*$:toc}" "no" :)(:*toc:)(:ifend:)
> >>
> >> Using this, all pages that do _not_ contain the following line
> >>
> >>      (:toc: no:)
> >>
> >> will get a table of contents. Very neat, and you don't have to use the
> >> description variable.
> >
> > This is indeed neat.  Couldn't the capability also be built into the
> > (:*toc:) directive itself, so that it doesn't display itself on any page
> > where $:toc is "no"?
>
> I guess it could... I CC:d John. To be honest, I don't remember what
> (:*toc:) does compared to (:toc:).
>
> Hmm.. maybe a flag should be given to (:toc:) in order for it to check for
> (:toc: no:) before it's used to supress the toc?
>
> /C
>
> --
> Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>



More information about the pmwiki-users mailing list