Magento – Remove Top Drop Menu Extension Items from Admin Panel

admin-paneladminmenuconfiguration

Some of the extensions I've installed on my installation insist on having top drop down menu's in the admin panel that are duplicated in System/Configuration. It's gotten to a point where the items have now started a second row making it somewhat difficult to navigate.

How do you remove only these selected top menu items?

Best Answer

To hide a menu item you can simply add the following to a adminhtml.xml file in your module.

<config>
    <menu>
        <first_level>
            <children>
                <second_level>
                    <disabled>1</disabled>
                </second_level>
            </children>
        </first_level>
    </menu>
</config>

For example:

If you wanted to hide the Catalog->Manage Products for some crazy reason you would replace first_level with catalog and second_level with products.

<config>
    <menu>
        <catalog>
            <children>
                <products>
                    <disabled>1</disabled>
                </products>
            </children>
        </catalog>
    </menu>
</config>

I like the idea of creating the custom admin roles but if you want it to be disabled for all users then you way as well remove them.

Related Topic