Page 1 of 1

sidebar.tpl determining side, is this possible?

Posted: Mon Apr 10, 2006 10:35 pm
by carl_galloway
Caio e tutti,

I'm trying to add some Smarty to sidebar.tpl so I can determine if I'm working with the left or right sidebar. Basically I want
{if left} {elseif right} {/if}

What variables would I use to make this happen?

Carl

Posted: Tue Apr 11, 2006 3:03 am
by judebert
You want:

Code: Select all

{if $pluginside == 'Left'}
  Left sidebar stuff
{elseif $pluginside == 'Right'}
  Right sidebar stuff
{/if}
Good luck!

Posted: Tue Apr 11, 2006 3:10 am
by carl_galloway
I thought I tried that - man I'm losing the plot!!

Thanks Jude, solved my problem