[pmwiki-users] Re: Trouble with PageTemplateFmt overwriting PrintTemplateFmt since switching to 2.0.

Doyce Testerman doyce.testerman at gmail.com
Thu Sep 15 15:38:20 CDT 2005


Looks perfect, however it's throwing an error...

Fatal error: Call to undefined function: loadtemplate() in
/pub/skins/local/skin.php on line 3

On 9/15/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > Is there a solution here other than setting up 14 skin directories
> > under the /skins/ for the various groups I'm running in this wiki?
>
> Yes.  In your pub/skins/local/ directory, create a file called
> 'skin.php', and set it to:
>
>     <?php if (!defined('PmWiki')) exit();
>
>     SDV($LocalTemplate, 'default.tmpl');
>     LoadTemplate("$SkinDir/$LocalTemplate");
>
> In your config, just set:
>
>     $Skin = 'local';
>
> With this setting, the local skin will always default to
> "default.tmpl" in pub/skins/local/.  However, if a per-page or
> per-group customization wants to change the template being used,
> it can do
>
>     $LocalTemplate = 'other.tmpl';
>
> which will tell the skin to use a template file other than
> the one set by the SDV() statement above.
>
> Hope this helps!

--
Doyce Testerman
smarter at average-bear.comhttp://www.average-bear.com
"Luckily, no one said 'write something that makes sense.'"
http://calendar.yahoo.com/bear2305


More information about the pmwiki-users mailing list