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

Patrick R. Michaud pmichaud at pobox.com
Thu Apr 19 07:17:05 CDT 2007


On Thu, Apr 19, 2007 at 09:42:15AM +0200, christian.ridderstrom at gmail.com wrote:
> 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.  

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"?

Pm

> PS. pmwiki.org was very slow this morning, i.e. about 10:00 CET.

Hmmm, I'll check into it.




More information about the pmwiki-users mailing list