0

Magento 1.7.2 のカスタム テンプレートで、Magento CMS PAGES を topMenu (top.links ではなく) に追加したい

そこで、パスにlocal.xmlというファイルを作成しました

app/design/frontend/mytheme/default/layout/local.xml

xml のコンテンツ:

<?xml version="1.0"?>
<layout version="0.1.0">
    <default translate="label" module="page">   
      <reference name="topMenu">
            <action method="addLink" translate="label title"><label> TEST </label><url helper="customer/getAccountUrl"/><title> TEST </title><prepare/><urlParams/><position>1</position></action>
        </reference>
    </default>
</layout>

この XMLは、「customer/getAccountUrl」に接続するtopMenuにTESTというリンクを作成することになっています。

しかし、私のリンクが表示されません...誰かがそれが間違っているのではないかと疑っていますか?

4

1 に答える 1