在magento中如何添加或删除标题中的链接

时间:2013-12-09 07:18:51

标签: magento

我想知道如何在magento标头中创建链接,还需要知道如何删除标头中以前添加的链接。

2 个答案:

答案 0 :(得分:1)

您可以为自定义链接添加这样的内容,以便在magento标头中设置

<default>
<reference name="top.links">
  <action method="addLink" translate="label title">
    <label>Terms and Condition</label>
    <url>terms</url>
    <title>Terms and Condition</title>
    <prepare>true</prepare>
    <position>2</position>
  </action>
</reference>
</default>

另见

http://www.techdilate.com/code/magento-add-remove-top-links-using-layout-xml/

我与上述链接无关。这仅用于知识共享目的。

答案 1 :(得分:0)

我认为你想要的答案是:

http://www.magentocommerce.com/boards/viewthread/6237/