[pmwiki-users] New recipe: PTVInclude

Hans design5 at softflow.co.uk
Mon Apr 16 15:48:06 CDT 2007


PTVInclude provides a markup directive
(:ptvinclude PageName TemplateName:) to display PTVs from
other pages in layout formats and styles determined by a template
page. This will enable data display in multiple flexible ways. Layout
and styles can be changed by modifying the template, or switching
templates from a central Config page by setting a DisplayTemplate PTV
on the Config page. By using the ptvinclude directive within a
pagelist format-template (on Site.LocalTemplates for instance)
pagelists can be used to show pages with PTV data in template
determined formatted layout.

This display-by-template approach could be used in combination with
creating pages with PTV data (data pages) through a form processing
recipe like for instance Fox. In this case the form processor writes
PTV data without including much formatting, and ptvinclude is used to
provide the formatted display. A forum built with this method can be
changed in layout and style by just selecting a new display template.

Many thanks to Feral who provided the initial idea!

For download and more usage information see
http://www.pmwiki.org/wiki/Cookbook/PTVInclude

Your comments, suggestions and feedback as always are most welcome!

  ~Hans   




More information about the pmwiki-users mailing list