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”
really very good and imp help//
but now what other like..to hide sales, promotion, newsletters…and more
Old but nice information!
im having troubles removing others menu titles, i think you should explain a little bit more how to do this part.
thank you.
great, it works perfectly!
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
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
…
myproject\app\code\core\Mage\Adminhtml\etc
here adminhtml.xml
write
HideMe
below
HideMe
lol, so simple.
May I know which folder should i put the xml file for
“Example to hide entire “Mobile” tab”?
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 !
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………….
Just use “”:
Example:
<!– to match adminhtml.xml file of Mage_Adminhtml module –>
<!– Same as –>
1
1
What if I hide it for specific group of admin users only? Is there an easy way?
Thanks!
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