开发者

How to customize a admin menu in Magento

开发者 https://www.devze.com 2023-04-05 19:10 出处:网络
I just created a module Custoreport and this is custoreport xml configuration. <adminhtml> 开发者_开发百科<menu>

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

精彩评论

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