首页 文章

在magento的Customers菜单下创建一个子菜单

提问于
浏览
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>

但它不起作用 . 任何建议将不胜感激 .

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>
     ...
    

相关问题