| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to find out which Smarty templates were used for a page? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to find out which Smarty templates were used for a page?
I do a lot of modifying of X-Cart Smarty templates. Thank goodness for the templating system... however, I find myself searching up chains of .tpl's which were called by another .tpl which was called by another .tpl, which gets tedious after a while (using grep, BBEdit, or any other means of searching the contents of all my skin1 files).
My question is, is there any kind of diagnostic message I can output which will display the tree of .tpl files which were involved in the display of a certain page? For instance, if I'm looking at a product list, I'd like to see some debugging info at the top of the page which indicates that products.tpl called product.tpl, and those were called by home_main.tpl (hypothetically speaking), so I would know what template files to modify if I wanted to change the content on the page. Thanks for any help anyone can give. Scott |
|||||||
#2
|
|||||||
|
|||||||
That would be called Webmaster Mode...With the xcart debugging console active, it displays a tree-like heirarchical list of template calls etc. Is that what you were after?
|
|||||||
#3
|
|||||||
|
|||||||
WOW!
Oh, my!! I vaguely remember reading about that somewhere. Pays to ask! That's way more than I would've imagined was possible. A HUGE timesaver! Thank goodness for that!
Thanks for the fast help!! Scott |
|||||||
|
|||
X-Cart forums © 2001-2020
|