Magento: How to hide menu items of admin panel

Here’s a little trick to hide menu items or an entire tab from Magento admin menu. This can be useful to hide the old “Dataflow” import/export or the entire “Mobile” tab for example.

Example to hide “Dataflow” import/export items

BEFORE

Create a file called adminhtml.xml under /etc folder of your module:

<?xml version="1.0" encoding="utf-8"?>
<config>
    <menu>
        <system>
            <children>
                <convert> <!-- <convert> to match adminhtml.xml file of Mage_Adminhtml module -->
                    <children>
                        <gui> <!-- Same as <convert> -->
                            <depends>
                                <module>HideMe</module> <!-- Fake dependance to hide menu item -->
                            </depends>
                        </gui>
                        <profiles>
                            <depends>
                                <module>HideMe</module> <!-- Fake dependance to hide menu item -->
                            </depends>
                        </profiles>
                    </children>
                </convert>
            </children>
        </system>
    </menu>
</config>

AFTER

Example to hide entire “Mobile” tab

BEFORE

Create a file called adminhtml.xml under /etc folder of your module:

<?xml version="1.0" encoding="utf-8"?>
<config>
    <menu>
        <xmlconnect> <!-- <xmlconnect> to match adminhtml.xml file of Mage_XmlConnect module -->
            <depends>
                <module>HideMe</module> <!-- Fake dependance to hide tab -->
            </depends>
        </xmlconnect>
    </menu>
</config>

AFTER

Note that this trick only hide the elements but does not prevent access!

15 Responses to “Magento: How to hide menu items of admin panel”

  1. Praful says:

    really very good and imp help//

    but now what other like..to hide sales, promotion, newsletters…and more

  2. Luciano says:

    im having troubles removing others menu titles, i think you should explain a little bit more how to do this part.

    thank you.

  3. teknoman says:

    great, it works perfectly!

  4. Louis W says:

    I am having problems getting this to work under 1.7.
    Here is what I did, and I have tried clearing cache (it’s already disabled) and logging in/out, but the menu still appears.

    File: app/code/community/LDW/AdminMenu/etc/adminhtml.xml

    HideMe

    File: app/etc/modules/LDW.xml

    true
    local

  5. Marius says:

    hi,

    i found this solution:

    w:\myprocjet\app\code\community\custom\News\etc\config.xml – config of my custom module

    News
    74
    news/adminhtml_news

    My_Nonexisting_Model

    My_Nonexisting_Model

    My_Nonexisting_Model

    My_Nonexisting_Model

    My_Nonexisting_Model

    My_Nonexisting_Model

    Allow Everything

    News Module
    10

    news.xml

  6. arvind says:

    myproject\app\code\core\Mage\Adminhtml\etc

    here adminhtml.xml

    write

    HideMe

    below

  7. Ari says:

    lol, so simple.

  8. Sonic says:

    May I know which folder should i put the xml file for
    “Example to hide entire “Mobile” tab”?

  9. Hello !

    En fait il suffit de mettre 1 pour cacher un élément :)

    Tu peux aussi mettre un 0.

    Utiliser un module qui n’existe pas en dépendance n’est pas forcément bon : si un jour quelqu’un ajoute ce module ?
    Ça demande au système à chaque fois si le module est actif.

    À plus !

  10. prakash says:

    hi,
    i want to remove some tabs which is given in catalog menu such as price, gift option, recurring profile , product review etc.
    i need your help………….

  11. Just use “”:

    Example:

    <!– to match adminhtml.xml file of Mage_Adminhtml module –>

    <!– Same as –>
    1

    1

  12. Mummy Ninja says:

    What if I hide it for specific group of admin users only? Is there an easy way? :D

  13. Luiz Venturote says:

    Thanks!

  14. Vijay says:

    After hiding Menu in my magento website, its not coming back, I have done the same thing again.

    It showing message incorrect parameter. Please guide me

    Thank you

Leave a Reply

* Required fields

Categories