0

config.xml のカタログ メイン ナビゲーション メニューの下にサブメニューを作成する方法を知っています。

<menu>
    <catalog>
    <children>
        <testimonials>
                <title>Manage Testimonials</title>
                <sort_order>1</sort_order>
                <action>adminhtml/adminhtml_testimonials</action>
        </testimonials>
    </children>
</catalog>
</menu>

しかし、顧客メニューの下にサブメニューを作成するにはどうすればよいですか? 私は試した:

<menu>
    <customers>
    <children>
        <testimonials>
                <title>Manage Testimonials</title>
                <sort_order>1</sort_order>
                <action>adminhtml/adminhtml_testimonials</action>
        </testimonials>
    </children>
</customers>
</menu>

しかし、うまくいきません。任意の提案をいただければ幸いです。

4

1 に答える 1

1

これは権限の問題ではなく、キャッシュをクリアして再ログインしていると仮定します。

config.xml 内

<?xml version="1.0"?>
<config>  
  ....
  <adminhtml>  <---
    <menu>
      <customer>
        <children>
          <testimonials>
            <title>Manage Testimonials</title>
            <sort_order>0</sort_order>
            <action>adminhtml/adminhtml_testimonials</action>
          </testimonials>
        </children>
      </customer>
    </menu>
  </adminhtml>  <---      
 ....

また

adminhtml.xml 内

<?xml version="1.0"?>
<config> 
  ... 
  <menu>
      <customer>
        <children>
          <testimonials>
            <title>Manage Testimonials</title>
            <sort_order>0</sort_order>
            <action>adminhtml/adminhtml_testimonials</action>
          </testimonials>
        </children>
      </customer>
    </menu>
 ...
于 2014-02-11T18:31:25.963 に答える