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
|