sidebar.tpl determining side, is this possible?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

sidebar.tpl determining side, is this possible?

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

You want:

Code: Select all

{if $pluginside == 'Left'}
  Left sidebar stuff
{elseif $pluginside == 'Right'}
  Right sidebar stuff
{/if}
Good luck!
Judebert
---
Website | Wishlist | PayPal
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

I thought I tried that - man I'm losing the plot!!

Thanks Jude, solved my problem
Post Reply