hi Scott
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).
for example:
in config.php:
if($group!="Main")
$TmplSideBar = "Main.SideBar Main.SideBar";
else
$TmplSideBar = "$Group.SideBar Main.SideBar";
in your tmpl:
<!--wiki:$TmplSideBar-->
adam
On 24 Sep 2010, at 10:00 AM, [email protected] wrote:
> Message: 1
> Date: Thu, 23 Sep 2010 21:16:07 -0400
> From: Scott <[email protected]>
> To: [email protected]
> Subject: [pmwiki-users] Conditionals in Templates
> Message-ID: <[email protected]>
> 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-->
> <hr>
> (:ifend:)
> <!--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?
>
> Thanks,
>
> sdlaw
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users