将自定义链接添加到顶部链接Magento



我可以添加自定义链接,例如 http://google.com/到以下代码中:

<reference name="top.links">
    <action method="addLink" translate="label title" >
        <label>Your Label</label>
        <url ....../>
        <title>Your Title</title>
        <prepare/>
        <urlParams/>
        <position>100</position>
    </action>
</reference>

此代码来自客户.xml来自我在Magento的主题

提前致谢

是的,你可以。将此代码添加到模板的本地.xml中的"<reference name="top.links">

<action method="addLink" translate="label title">
    <label>Google</label>
    <url>http://google.co.in</url>
    <title>Google</title>
    <prepare/>
    <urlParams/>
    <position>80</position>
    <aParams>
        <target>_blank</target>
    </aParams>
</action>

PS:<target>被添加到新选项卡中打开链接。

最新更新