[pmwiki-users] Conditionals in Templates
5ko at 5ko.fr
Fri Sep 24 01:28:22 CDT 2010
On Friday 24 September 2010 03:16:07 Scott wrote:
> I am trying to use a conditional statement in my template:
> (:if ! group Main:)
> <!--wiki:Main.SideBar Main.SideBar-->
> <!--wiki:$Group.SideBar Main.SideBar-->
> Unfortunately, this just outputs the conditional. I also tried the php
> variant and a few other things.
> What is the correct way to accomplish this?
Hello. If you want to always display the Main.SideBar page, just use
Otherwise, it is simpler to place the conditionals inside the pages, and not
in the templates.
More information about the pmwiki-users