[pmwiki-users] Conditionals in Templates

Petko Yotov 5ko at 5ko.fr
Fri Sep 24 07:34:57 CDT 2010

On Friday 24 September 2010 14:28:38 Petko Yotov wrote:
> On Friday 24 September 2010 13:11:08 Scott wrote:
> > I basically want the Main side bar followed by the group
> > side bar.   But on the main page, it would be redundant to have the main
> > twice.

> If you can live with some wiki markup inside a wiki page, you can use just
>   <!--wiki:Main.SideBar-->
> in the template, and at the bottom of the page [[Main.SideBar]], you can
> have your conditional wrapped around (:include {*$Group}.SideBar:).

Of course, instead of a conditional, you could just have :
(:include {*$Group}.SideBar self=0:)

See http://www.pmwiki.org/wiki/PmWiki/IncludeOtherPages for more information.


More information about the pmwiki-users mailing list