Thursday, April 26, 2007, 11:02:35 PM, Patrick wrote:

> There's an issue here of sequencing -- markup rules with
> a when value of 'directives' some time after the {$var}
> markup rule.  So, by the time the (:testpv:) directive is
> processed, it's too late to set $FmtPV[] to be used as
> a page variable (at least, for the current page).

It reads a bit garbled, but I did a quick test:
It does work if I set the markup to '_init'.
'fulltext' or '<split' did not work.

I am reluctant to use 'init', but maybe there is no harm here, as the
function gets some PTVs from the page, does some calculations and sets
some PVs. Well it does output the appropriate star image as well in
the return, but I use HTML and Keep, so that should be safe.

When exactly are {$var} translated?

Hans


_______________________________________________
pmwiki-devel mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to