[pmwiki-users] Conditionals in Templates

Scott scott at judyscot.org
Sat Sep 25 18:42:37 CDT 2010


  On 9/24/2010 8:34 AM, Petko Yotov wrote:
> 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.
>
> Petko

And the include does work in the sidebar.  Thanks.

    -Scott




More information about the pmwiki-users mailing list