Petko, Peter,<br>
<br>
These are both absolutely fantastic! I was banging my head on a wall trying to
figure it out, but that is exactly what I wanted. I knew PMWiki ought
to be able to do it.<br>
<br>
Thanks very much!<br>
Michael. <br><br><div class="gmail_quote">2009/4/1 Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think PTV (PageTextVariables) will do what you want.<br><br>Put this in Templates/Navbox:<br><br>===(snip)===<br>Hi, my name is {$:MyName} and I live at {$:Address} but you can call me {$:Title}.<br>===(snip)===<br><br>
Then in page Mygroup.Mypage where you want to see that displayed you put this:<br>
<br>===(snip)===<br>(:MyName:John Smith:)<br>(:Title:Sam:)<br>(:Address:132 Main St:)<br>(:include Templates/Navbox:)<br>===(snip)===<br><br>Now when you view Mygroup.Mypage you will see<br><br>===(snip)===<br>Hi, my name is John Smith and I live at 132 Main St but you can call me Sam.<br>
===(snip)===<br><br>Is that what you were wanting? Or were you wanting the variable to be set in the Nav page?<br><br>-Peter<br><br><div class="gmail_quote">2009/4/1 Michael Fake <span dir="ltr"><<a href="mailto:michael.j.fake@googlemail.com" target="_blank">michael.j.fake@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Hi all,<br><br>New to PMWiki, and I promise I've spent hours and hours trawling through the email archives and the main site trying to find the answer to this question, but I'm still stumped: is it possible in PMWiki to create templates with variables, equivalent to the templating seen in Mediawiki (e.g. with navboxes, warning boxes, etc).<br>
<br>I know I can edit group.headers and .footers, and I think I understand how the (:include:) function and pagelist variables are working, but neither of these seems capable of doing what I need.<br><br>I'd like to be able to, say, create a table in the page Templates/Navbox, with variables in the 'Name', 'Address', 'Title' cells, and then to pull that table into any other page on the wiki, and set the name, address, and title variables within that table on each of those pages.<br>
<br>Is this possible?<br><br>Thanks,<br><font color="#888888">Michael.<br>
</font><br></div></div>_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
<br></blockquote></div><br>
</blockquote></div><br>