[Pmwiki-users] New Cookbook Recipe

Steven Leite steven_leite
Thu Mar 18 04:53:35 CST 2004


EasyTemplates
Problem
  Currently, it's not possible to create a site-wide default template without directly changing the pmwiki.tmpl file, and losing your changes the next time your upgrade. 

Solution

  This add-on script allows you to create a default template for your entire site without having to modify PmWiki's distribution files. The script automatically detects the presence of PageTemplate(s) and GroupTemplate(s), and use them accordingly. 

  The script won't over-write or change any existing customizations or original PmWiki files. Only 9 lines of code in this script! Script also includes a plain vanilla default template that you can use as a base to build on. 



  Just add this one line to your config.php file:



  include_once("local/scripts/easy_templates.php");
PmWikiCookbook URL

  http://www.pmichaud.com/wiki/Cookbook/EasyTemplates
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://contra.vosn.net/pipermail/pmwiki-users_pmichaud.com/attachments/20040318/56913e97/attachment.htm


More information about the pmwiki-users mailing list