[pmwiki-users] pmwiki-2.2.0-beta46 released
Patrick R. Michaud
pmichaud at pobox.com
Sun May 20 09:04:42 CDT 2007
On Sun, May 20, 2007 at 02:39:19PM +0100, Hans wrote:
> Sunday, May 20, 2007, 2:19:12 PM, Hans wrote:
>
> >> It works for me:
>
> >> http://www.pmwiki.org/wiki/Test/IncludeWithPTV
>
> >> Perhaps you were expecting something else...?
>
> > I expected the first example here to work:
> > http://www.pmwiki.org/wiki/Test/IncludeVarTest
>
> I see I need to use {*{$$text}} instead of {$$text} in the template,
> so the PTV replacement can work.
> What does {*{$$text}} mean?
If {*{$$text}} in a template, then {$$text} is substituted with the
value of the text= option to (:include:). The result is just a normal
page text variable on the current page.
Thus, with
(:include ... author="John" text=$:comment1 :)
the {$$text} in {*{$$text}} is replaced with "$:comment1", producing
{*$:comment1}
The markup engine then sees this as a normal page text variable
("$:comment1 on the currently displayed page").
Yes, it's a little obscure, but it works. And there seems to be a lot
of flexibility in the things that can be done with this.
Pm
More information about the pmwiki-users
mailing list