![]() |
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 |
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? :wink:
|
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 |
All times are GMT -8. The time now is 07:28 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.