![]() |
Why are templates shared?
Hi all,
I am studying the way the smarty templates are organised. Why on earth do the customer and admin site share the same template files? For me it does not make any sense! Thanks, Joep |
Re: Why are templates shared?
Nope, it doesn't :) I have created admin-only copies of each of the shared templates in my core installation package.
|
Re: Why are templates shared?
Thanks for your quick reply!!!
Of course I can do the {if $usertype eq "C"} stuff (from your excellent page http://forum.x-cart.com/viewtopic.php?t=28546). How did you manage to create the different template pages for both front ends? Cheers, Joep |
Re: Why are templates shared?
I use the {if $usertype... for the menu and dialog boxes, but it is easier just to create a different head template (head_admin.tpl). Just duplicate your head.tpl and then open up single/home.tpl and change head.tpl to head_admin.tpl.
|
Re: Why are templates shared?
Thanks, you pointed me to the right direction.
Maybe your info is outdated #-o? In single/home.tpl there is only a link to head_admin.tpl and not to head.tpl. Joep |
Re: Why are templates shared?
Ah, yea, in 4.1 they updated a few things.
|
All times are GMT -8. The time now is 02:01 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.