Petko, Peter, 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.
Thanks very much! Michael. 2009/4/1 Peter Bowers <[email protected]> > I think PTV (PageTextVariables) will do what you want. > > Put this in Templates/Navbox: > > ===(snip)=== > Hi, my name is {$:MyName} and I live at {$:Address} but you can call me > {$:Title}. > ===(snip)=== > > 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 > > 2009/4/1 Michael Fake <[email protected]> > >> Hi all, >> >> 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). >> >> 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. >> >> 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. >> >> Is this possible? >> >> Thanks, >> Michael. >> >> _______________________________________________ >> pmwiki-users mailing list >> [email protected] >> http://www.pmichaud.com/mailman/listinfo/pmwiki-users >> >> >
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
