[pmwiki-users] appending to a sidebar

Hans design5 at softflow.co.uk
Mon Oct 5 18:56:51 CDT 2009

Monday, October 5, 2009, 11:50:23 PM, adam overton wrote:

> i'm imagining something like:
> $GroupSideBarFmt = $GroupSideBarFmt . '(:if auth admin:)(:include  
> Site.SideBarAdmin:)(:ifend:)';

that does not exist.
the simplest would e to modify the skin .tmpl file
and add after
<!--wiki:{$SideBar} $Group.SideBar $SiteGroup.SideBar-->

If you don't want to do this, you could do this:

Instead of using $Group.SideBar pages, use something like
$Group.LeftBar for instance, just a different page name.
Delete all Group.SideBar pages except Site.SideBar.
Then use Site.SideBar like this:

(:include {*$Group}.LeftBar:)
(:if auth admin:)
my admin links etc....

Site.SideBar will be shown in all Groups, and it will include the
relevant LeftBar page for the Group menu, plus anything else.


More information about the pmwiki-users mailing list