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 回答