[pmwiki-users] Re: Trouble with PageTemplateFmt overwriting PrintTemplateFmt since switching to 2.0.
Patrick R. Michaud
pmichaud at pobox.com
Thu Sep 15 15:48:35 CDT 2005
On Thu, Sep 15, 2005 at 02:38:20PM -0600, Doyce Testerman wrote:
> Looks perfect, however it's throwing an error...
> Fatal error: Call to undefined function: loadtemplate() in
> /pub/skins/local/skin.php on line 3
Oops! Sorry about that -- doing too many things at once today and I
haven't been checking my answers as thoroughly as I should.
This should work:
<?php if (!defined('PmWiki')) exit();
Try that and see if it helps!
> 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.com ? http://www.average-bear.com
> "Luckily, no one said 'write something that makes sense.'"
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users