如何在Magento中移动管理菜单项

Jos*_*ton 2 magento

我目前有一个我创建的扩展程序,它目前位于自己的顶级菜单中.我想移动它,以便项目出现在Customers菜单中.有谁知道如何做到这一点?

看起来这是在扩展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>
Run Code Online (Sandbox Code Playgroud)

我尝试将title元素更改为Customers,它只是创建了一个重复的Customers菜单.

Jos*_*tey 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>
Run Code Online (Sandbox Code Playgroud)