Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to trace where Magento is calling templates from?

I'm working with Magento. See the following code:

<?php echo $this->getChildHtml('topMenu') ?>

Is there an easy way to find where HTML resides. I.e. is there some kind of trace I can use?

like image 987
frosty Avatar asked Nov 14 '10 14:11

frosty


1 Answers

In the admin go to System > Configuration > Developer, pick a store from the "Configuration Scope" select in the top left corner, then there will be a new option in "Debug" section called "Template Path Hints". Turn this on and refresh your store page again.

This and more is explained in the Designer's Guide to Magento.

like image 137
clockworkgeek Avatar answered Nov 15 '22 01:11

clockworkgeek