[pmwiki-users] Conditional statements in skin template?
Thomas -Balu- Walter
list+pmwiki-users at b-a-l-u.de
Thu Jul 27 09:01:27 CDT 2006
On Thu, Jul 27, 2006 at 12:53:49PM +0100, porneL wrote:
> I've got "back to index" link as part of my skin template (.tmpl), but the
> link needs to be different for one Wiki group.
>
> Is there a way I can check current wiki group in .tmpl and output
> different html based on that? or make link URL a variable which can be
> overriden in groupfooter?
> Or maybe it's possible to have different .tmpl for some group?
I'm using the following mechanism right now:
<body id="{$Group}">
This way I can mark parts of the page e.g. with classes:
<a href="#" class="indexlink1">
and switch settings in the CSS file:
#Main .indexlink1 {display: none;}
This way the link won't be displayed if group Main is the active one.
Balu
More information about the pmwiki-users
mailing list