To create a custom menu in back-end we create adminhtml.xml with following code into this file. My question is which file(s) are responsible to process this adminhtml.xml file to add our new menu item to the menu.

            <[module] module="[module]">
                    <items module="[module]">
                        <title>Manage Items</title>
                    <title>Allow Everything</title>
                            <title>[Module] Module</title>

1 Answer 1


According to app/design/adminhtml/layout/main.xml this block is loaded for the menu:

<block type="adminhtml/page_menu" name="menu" as="menu"></block>

So that concludes that Mage_Adminhtml_Block_Page_Menu (function _buildMenuArray) takes care of building the menu and processing everything. Of course many different components are used in this block.

  • 4
    Worth noting that this block ooutput is cached in the block_html cache.
    – benmarks
    Commented Jan 23, 2013 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.