【发布时间】:2012-11-27 04:58:31
【问题描述】:
在我已经使用的主题中(在 local.xml 中):
<reference name="top.links">
<action method="setTemplate"><template>page/html/header/links.phtml</template></action>
</reference>
现在我正在制作一个要更改模板的模块,因此无需修改主题即可安装该模块。 因此,来自模块 xml 文件的代码几乎相同:
<reference name="top.links">
<action method="setTemplate"><template>sociallogin/header/links.phtml</template></action>
</reference>
Magento 总是选择 local.xml 中的第一个 我怎样才能覆盖它?
【问题讨论】:
标签: xml templates magento layout