2010-06-15 73 views
2

我目前有一個我創建的擴展,它目前位於其自己的頂級菜單中。我想移動它以便該項目出現在「客戶」菜單中。有誰知道如何做到這一點?如何移動Magento中的管理菜單項目

看起來這是在extensions config.xml文件中處理的。我現在有它的代碼如下:

<menu> 
    <testimonials module="testimonials"> 
     <title>Testimonials</title> 
     <sort_order>71</sort_order> 
     <children> 
      <items module="testimonials"> 
       <title>Manage Items</title> 
       <sort_order>0</sort_order> 
       <action>testimonials/adminhtml_testimonials</action> 
      </items> 
     </children> 
    </testimonials> 
</menu> 

我試圖改變標題元素的客戶,它只是創造了一個重​​復的客戶菜單。

+0

有趣的問題,約什。感謝Joseph的回答。很有幫助。 – shaune 2010-06-17 15:03:50

回答

6

試試這個:

<menu> 
    <customer> 
     <children> 
      <testimonials module="testimonials"> 
       <title>Testimonials</title> 
       <sort_order>71</sort_order> 
       <children> 
        <items module="testimonials"> 
         <title>Manage Items</title> 
         <sort_order>0</sort_order> 
         <action>testimonials/adminhtml_testimonials</action> 
        </items> 
       </children> 
      </testimonials> 
     </children> 
    </customer> 
</menu> 
+0

非常感謝!這爲我做了詭計。 – 2010-06-16 14:36:45

相關問題