[pmwiki-users] Per-Group Sidebars?

Patrick R. Michaud pmichaud at pobox.com
Fri Jul 14 15:26:00 CDT 2006


On Fri, Jul 14, 2006 at 08:32:28PM +0100, Marc Cooper wrote:
> Patrick R. Michaud said...
> > On Thu, Jul 13, 2006 at 03:19:52PM -0500, Michael Gleicher wrote:
> > > Is it possible to specify a different sidebar to be used by a particular 
> > > group?
> > 
> > Sure, just create a page called "SideBar" in that group -- it will
> > replace the default Site.SideBar.
> 
> An alternative way to do this is to remove the code in the skin that 
> gives priority to $group.sidebar over $site.sidebar and embed the 
> $group-specific sidebar code within the $site.sidebar with something 
> like:
> 
> (:if !group site :)
> (:include {$Group}.sidebar:) (:if:)

Still another way to do it is to have the group-specific sidebar
use

    (:include Site.SideBar:)

at the appropriate place (usually either the top or bottom of
the group-specific sidebar).

Pm




More information about the pmwiki-users mailing list