X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to find out which Smarty templates were used for a page? (https://forum.x-cart.com/showthread.php?t=11580)

steresi 01-19-2005 06:35 PM

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

hooter 01-19-2005 06:52 PM

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:

steresi 01-19-2005 07:22 PM

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.