View Single Post
  #1  
Old 03-27-2006, 03:14 PM
 
jherzog jherzog is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 93
 

Default Parts of bottom.tpl to react differently when in admin

so I Have added code to my bottom.tpl but I need it to act differently depending on if the viewer is a customer or an admin.

My first idea was that the head.tpl and head_admin.tpl file switches between these modes. So I defined a variable in head_admin.tpl and then an if statement looking for that variable in bottom.tpl. However I just found out that with smarty you can't do this (define a variable in one tpl and have it be there when the other tpl loads).

So is there another way you can suggest? Is there a variable or setting that I can test for in bottom.tpl to see if I am an admin or customer?

Thanks
Jed
__________________
Jed Herzog
Gold X-Cart 4.0.17
http://www.outliersolutions.com
Portland Advertising Agency,
Portland Web Design
Reply With Quote