2014-02-11 29 views
0

根据客户菜单的子菜单,我知道如何创建config.xml文件目录下的主导航菜单的子菜单是:建立在Magento

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

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

回答

0

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

在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> 
... 
+0

优秀..这工作。谢谢 –