[pmwiki-users] fmt=#description weirdness

Dominique Faure dominique.faure at gmail.com
Fri Oct 26 03:25:18 CDT 2007


On 10/26/07, Maria McKinley <parody at u.washington.edu> wrote:
> Yes, I think so. (Love this long conversation with myself, sorry for
> filling everyone's inbox with it).
>
> This code seems to work fine:
>
> (:if false:)
> [[#description]]
> * [[{=$FullName}|+]]
>   - {=$Description}
> [[#descriptionend]]
> (:ifend:)
>
> (:pagelist group={$Group} fmt=#description count=7:)
>
> And now I get what the = before the $Description was for - gets it
> from the page it is sampling from, instead of the current page. I'm
> really not sure why the if statement was there at all.
>

The (:if false:)...(:ifend:) statement is surely used to hide the
template definition, but you have to remember that actually (:if:)
conditions don't nest. When conditionals are needed, the use of
another mean to hide your code is better.

-- 
Dominique



More information about the pmwiki-users mailing list