[pmwiki-users] wikiforms adds ViewTemplate
John Rankin
john.rankin at affinity.co.nz
Wed Apr 12 17:31:26 CDT 2006
This is at the proof of concept stage...
Several people have asked for a way to change the display of
pages created using the wikiforms recipe. The latest version
http://www.pmwiki.org/wiki/Cookbook/WikiForms
supports this.
1. create a page in the group holding the data pages called
ViewTemplate
2. on that page, where you want data to go, write <fieldname>
along with any other wiki text and markup you need
3. when you browse a page of the form Group.nnnnn it will use
the contents of ViewTemplate, and substitute the value of
each <fieldname>
4. to use a different template, use ?template=templatename
5. to change the default template name, set $WikiFormViewFmt
in local/config.php
6. if no view template exists, the normal browse is used
I expect this will need refinement, but it's a start...
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list