【发布时间】:2015-11-27 02:11:34
【问题描述】:
我已经查看了几个关于在 Magento 中创建自己的自定义页脚的教程,但没有一个与添加到默认页脚的链接有关。我想在 Magento 默认页脚的“帐户”div 下添加一些链接。这是我在 app/design/frontend/rwd/default/layout/customer.xml 中的内容:
<default>
<!-- Mage_Customer -->
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
<action method="addLink" translate="label title before_text" module="customer"><label>Register</label><url helper="customer/getRegisterUrl" /><title>Register</title><prepare/><urlParams/><position>100</position><li/><a/></action>
</reference>
<reference name="footer_links2">
<action method="addLink" translate="label title" module="catalog"><label>My Account</label><url helper="customer/getAccountUrl" /><title>My Account</title></action>
<action method="addLink" translate="label title"><label>Customer Service</label><url helper="/customer-service/" /><title>Customer Service</title><prepare>true</prepare></action>
</reference>
</default>
【问题讨论】:
标签: magento footer magento-1.9