21493 Posts in 5784 Topics by 2622 members
| Go to End | ||
| Author | Topic: | 5727 Views |
-
Re: Remove Menu Item from Admin

3 April 2010 at 7:59pm Last edited: 3 April 2010 8:00pm
CMSMenu::remove_menu_item('AssetAdmin');
You can often discover this type of information easily by looking at the id attribute in the html source. In this case the 'Files & Images' source shows:
<li class="" id="Menu-AssetAdmin"><a href="admin/assets/">Files & Images</a></li>
I tried AssetAdmin and it worked.
-
Re: Remove Menu Item from Admin

24 July 2010 at 4:35am
btw....
for the "Reports" tab:
CMSMenu::remove_menu_item('ReportAdmin'); -
Re: Remove Menu Item from Admin

17 October 2010 at 2:19am
I just tried this in _config.php:
//Hide a main CMS Tab
CMSMenu::remove_menu_item('CommentAdmin');
CMSMenu::remove_menu_item('ReportAdmin');
CMSMenu::remove_menu_item('Help');The first two work, but 'Help' is still visible (in SS 2.4.2)...
-
Re: Remove Menu Item from Admin

17 October 2010 at 5:19am
See http://www.silverstripe.org/general-questions/show/260655?start=0#post263444 on how to remove the help tab from the admin.
| 5727 Views | ||
| Go to Top |



