如何在Magento中自定义管理菜单

时间:2011-09-16 02:54:27

标签: magento

我刚刚创建了一个模块Custoreport,这是custoreport xml配置。

<adminhtml>
        <menu>
            <custoreport>
                <title>Custoreport</title>
                <sort_order>71</sort_order>
                <children>
                    <admin2_adminhtml_custoreport>
                        <title>Manage Custoreport</title>
                        <action>admin2/adminhtml_custoreport</action>
                    </admin2_adminhtml_custoreport>                    
                </children>
            </custoreport>
        </menu>
</adminhtml>

菜单是“Custoreport / Manage Custoreport”。现在,我想自定义此菜单,如“reports / customers / Manage Custoreport”

请给我一些方法。 非常感谢!

1 个答案:

答案 0 :(得分:1)

查看报告模块配置(/app/code/core/Mage/Reports/etc/adminhtml.xml)

代码可能

    <adminhtml>
        <menu>
            <report>
                <children>
                    <customers>
                        <children>
                            <admin2_adminhtml_custoreport>
                                <title>Manage Custoreport</title>
                                <action>admin2/adminhtml_custoreport</action>
                            </admin2_adminhtml_custoreport>
                        </children>
                    </customers>
                </children>
            </report>
        </menu>
    </adminhtml>