[pmwiki-users] Conditionals in Templates (Scott)
a at plus1plus1plus.org
Fri Sep 24 16:05:48 CDT 2010
unless i'm misunderstanding what you want to do, perhaps another option is to define a variable within a conditional in config.php. then just plug in the variable in the template (which is called after config).
$TmplSideBar = "Main.SideBar Main.SideBar";
$TmplSideBar = "$Group.SideBar Main.SideBar";
in your tmpl:
On 24 Sep 2010, at 10:00 AM, pmwiki-users-request at pmichaud.com wrote:
> Message: 1
> Date: Thu, 23 Sep 2010 21:16:07 -0400
> From: Scott <scott at judyscot.org>
> To: pmwiki-users at pmichaud.com
> Subject: [pmwiki-users] Conditionals in Templates
> Message-ID: <4C9BFBD7.1010803 at judyscot.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 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?
More information about the pmwiki-users