0

我试图弄清楚以下块使用哪个模板来生成自定义链接。当没有为块定义模板路径时,我怎么知道它是哪个模板?感谢您的任何指点!

<block type="page/template_links" name="top.links.custom" as="topLinksCustom">
4

1 回答 1

1

模板是page/template/links.phtml.
通常当一个块没有在布局文件中指定模板时,它要么是一个core/text不使用模板的块,要么是在块构造函数中指定了模板。如果您看一下,Mage_Page_Block_Template_Links::_construct您应该会看到:

protected function _construct()
{
    $this->setTemplate('page/template/links.phtml');
}

这是您正在寻找的模板。
其他简单的方法是打开模板路径提示。

于 2013-09-03T13:20:52.230 回答