Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to find out which Smarty templates were used for a page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-19-2005, 06:35 PM
 
steresi steresi is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Pittsburgh, PA, USA
Posts: 31
 

Default 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
Reply With Quote
  #2  
Old 01-19-2005, 06:52 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

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?
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #3  
Old 01-19-2005, 07:22 PM
 
steresi steresi is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Pittsburgh, PA, USA
Posts: 31
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:52 PM.

   

 
X-Cart forums © 2001-2020