[pmwiki-users] Defining a variable in a wiki page
Patrick R. Michaud
pmichaud at pobox.com
Wed Apr 19 10:04:39 CDT 2006
On Wed, Apr 19, 2006 at 04:50:03PM +0200, Tom wrote:
> I know i read it somwhere, but i can't seem to find it anymore.
>
> Is there a markup to define a variable in a page, that can be used lateron?
>
> (:set Name Tom:)
>
> (:if equal $Name Tom:) or something like that .... ??
it's being discussed (try searching the mail archives for
"page properties").
It doesn't exist in the core yet -- I'm still working out a few details.
Part of the problem is one of sequencing -- with PmWiki's
existing markup rendering engine it's hard to have both
(:set Name Tom:)
(:if equal $Name Tom:)
...
(:if:)
and
(:if condition:)
(:set Name Tom:)
...
(:if:)
because if we process the "(:set:)" markup first, it will ignore
the conditional, and if we process the "(:if:)" markup first,
we can't use values from "(:set:)" as part of the conditional.
Dominique Faure and I have been working out some likely solutions
to this, but it's still in the design stage.
Pm
More information about the pmwiki-users
mailing list