Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove items from the Site Actions menu in SharePoint?

How can I customise the Site Actions menu to remove or rename 'standard' menu items? Where are the site actions menu items defined?

like image 381
Lachlan Wetherall Avatar asked Jan 24 '23 00:01

Lachlan Wetherall


2 Answers

The site actions menu is defined in the Siteaction.xml in Template\layouts\editingMenu under the 12 hive. The following link shows how to manually remove items.

Customize Site Actions Menu

I have added options to the menu using features, but have never tried to hide OTB option in code. I would be interested in your results.

Good luck!

like image 96
AdamBT Avatar answered Apr 09 '23 18:04

AdamBT


I was able to hide the menu item I wanted to hide by using ConfigMenu="Delete" in the relevant XML node of SiteActions.xml. e.g.

 <ConsoleNode ConfigMenu="Delete" ChangedNodeID="wsaCreateSite" />

The valid values for ConfigMenu are documented at http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.configmenuoptions.aspx

like image 35
Lachlan Wetherall Avatar answered Apr 09 '23 19:04

Lachlan Wetherall