开发者

How to customize a admin menu in Magento

I just created a module Custoreport and this is custoreport xml configuration.

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

And the menu is "Custoreport/Manage Custoreport". Now, I want to customize this menu like "reports/customers/Manage Custoreport"

Please give me the way to make it. Many thanks!


Look at Reports module configuration (/app/code/core/Mage/Reports/etc/adminhtml.xml)

Code may be

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜