[pmwiki-users] help with (:if and :) statement
christian.ridderstrom at gmail.com
christian.ridderstrom at gmail.com
Thu Apr 19 02:42:15 CDT 2007
On Wed, 18 Apr 2007, Patrick R. Michaud wrote:
> Shorter:
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. As for Main.HomePage, you just add
(:toc: no:)
to it.
I think this tip/technique should be added somewhere, but I'm not sure
where.
/Christian
PS. pmwiki.org was very slow this morning, i.e. about 10:00 CET.
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list