在我的主題我已經(在local.xml中)使用方法:覆蓋「setTemplate」 Magento的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中 第一個我怎麼可以重寫呢?
感謝您的澄清艾倫!第一個更新是在默認句柄中運行的,是否有另一個句柄在每個頁面視圖上應用後運行? – Vindfrisk
@Vindfrisk無處不在的'default'以外沒有單個句柄。但總是有一個'customer_logged_in'或'customer_logged_out',所以如果你將XML複製到這兩個,它將覆蓋'default'。 – clockworkgeek