[pmwiki-users] using PTVs as shortcuts for conditionals
Ben Stallings
ben at interdependentweb.com
Tue May 29 16:41:00 CDT 2007
Ben Stallings wrote:
> (:flag: yes:)
>
> so that rather than testing conditions 1 through 4 over and over again I
> could just test for
>
> (:if equal {$:flag} "yes":)
>
> ... but it doesn't work.
Found the problem, I think... the tests in question are in a
GroupHeader, and page text variables defined in a GroupHeader do not
appear to be available unless you specify the full name of the page each
time, in this case {Events/GroupHeader$:flag}. Is this a feature or a
bug? --Ben
More information about the pmwiki-users
mailing list