Sorry, my bad.  I needed to specify {*$:var} on my page text variables in
the template in order for them to pick up the value from the current page.
Thus the template should have looked like this:

===(snip)===
Hi, my name is {*$:MyName} and I live at {*$:Address} but you can call me
{*$:Title}.
===(snip)===

You can see this in a working example at
http://pmwiki.qdk.org/pmwiki.php/Test/Include -- I went ahead and did the
template in a simple table to illustrate that markup too..

Welcome to the pmwiki community, Michael!

-Peter

---------- Forwarded message ----------
...

Then in page Mygroup.Mypage where you want to see that displayed you put
this:

===(snip)===
(:MyName:John Smith:)
(:Title:Sam:)
(:Address:132 Main St:)
(:include Templates/Navbox:)
===(snip)===

Now when you view Mygroup.Mypage you will see

===(snip)===
Hi, my name is John Smith and I live at 132 Main St but you can call me Sam.
===(snip)===

Is that what you were wanting?  Or were you wanting the variable to be set
in the Nav page?

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

Reply via email to