[Pmwiki-users] Different templates for groups other than Main

Edward Andrews edward
Sat Mar 20 07:17:45 CST 2004


When I'm in groups other than main, I want to include both Main.SideBar and
$Group.SideBar.

I thought the best way would be to have
$PageTemplateFmt = "pub/skins/aldreth/othergroups.tmpl";
in local/config.php and
$PageTemplateFmt = "pub/skins/aldreth/main.tmpl";
in local/Main.php with main.tmpl including Main.SideBar and othergroups.tmpl
including both sidebars.

It doesn't work - only Main.SideBar is included.

I know that Main.php is forcing pages in the Main group to use main.tmpl because
i made other changes to it to check.

If I use local/PmWiki.php to set
$PageTemplateFmt = "pub/skins/aldreth/othergroups.tmpl";
then both sidebars are included.

So both templates work as expected, but for some reason local/config.php isn't
automatically forcing pages to use the correct template.

Any suggestions?

Edward Andrews




More information about the pmwiki-users mailing list