Reputation: 1297
I am trying to figure out which template the following block is using to generate custom links. How would I know which template it is when there is no template path defined for the block? Thanks for any pointers!
<block type="page/template_links" name="top.links.custom" as="topLinksCustom">
Upvotes: 0
Views: 54
Reputation: 15216
The template is page/template/links.phtml
.
Usually when a block does not have a template specified in the layout file, it's either a core/text
block that does not use a template or the template is specified in the block constructor. If you take a look at Mage_Page_Block_Template_Links::_construct
you should see this:
protected function _construct()
{
$this->setTemplate('page/template/links.phtml');
}
This is the template you are looking for.
And other easy way would be to turn on the template path hints.
Upvotes: 1