首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在magento的“客户”菜单下创建一个子菜单

在magento的“客户”菜单下创建一个子菜单
EN

Stack Overflow用户
提问于 2014-02-11 17:47:06
回答 1查看 3.2K关注 0票数 0

我知道如何在config.xml目录主导航菜单下创建子菜单,即:

代码语言:javascript
复制
<menu>
    <catalog>
    <children>
        <testimonials>
                <title>Manage Testimonials</title>
                <sort_order>1</sort_order>
                <action>adminhtml/adminhtml_testimonials</action>
        </testimonials>
    </children>
</catalog>
</menu>

但是如何在客户菜单下创建子菜单呢?我试过:

代码语言:javascript
复制
<menu>
    <customers>
    <children>
        <testimonials>
                <title>Manage Testimonials</title>
                <sort_order>1</sort_order>
                <action>adminhtml/adminhtml_testimonials</action>
        </testimonials>
    </children>
</customers>
</menu>

但不起作用。如有任何建议,将不胜感激。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-02-11 18:31:25

假设这不是权限问题,并且您有明确的缓存和重新登录。

在config.xml中

代码语言:javascript
复制
<?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中

代码语言:javascript
复制
<?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>
 ...
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21709224

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档