[pmwiki-users] Great pagelist question...
Ralph Zeller
ralph at zellercpa.com
Wed Aug 30 20:33:02 CDT 2006
On 08/30/06 06pm, Patrick R. Michaud wrote:
-clipped-
> At least my current vision of things, having colons in the
> markup text (as above) doesn't cause anything different to happen
> to the page it's written in. Everything remains exactly as
> before.
>
> Instead, it's when the page variable is used (as in {$:XYZ})
> that the magic happens -- at *that* point a page's markup is
> scanned looking for an XYZ: field to fill it. But the page
> itself is unchanged.
Another admittedly-gratuitous feature that I would like to see is some
rudimentary form of doing math with page variables. Or would it be
better just to use embedded PHP code somehow? When I set up the
example at FASTData/ProgrammingDocumentation, I noticed a similarity to
an invoice form.
(example markup)
:a: 3
:b: 2
:c: cats
:d: (:math {$:a} + {$:b} :)
Oh no, we have {$:d} {$:c}!
----
(resulting page)
Oh no, we have 5 cats!
More information about the pmwiki-users
mailing list