Hiding Items in the Site Actions Menu

I have a client that wanted to trim down the site actions menu to reduce clutter and confusion on their publishing site.  I originally went down the route of using
<HideCustomAction
  GroupId = "Text"
  HideActionId = "Text"
  Id = "Text"
  Location = "Text">
</HideCustomAction>
 

in the element manifest but that wasn't working.  The next attempt involved the CustomSiteAction.xml file found in the Masterpage gallery's Editing Menu folder.

The file contains an empty Console node.  The example below shows how to remove items.  You can tell from the ChangedNodeID which item in SiteActions is being removed.  Those ID's can be found in the v4.master or simply by viewing the page's source.

<?xml version="1.0" encoding="utf-8" ?>
<Console>
    <references>
        <reference TagPrefix="cms" assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" namespace="Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions" />
    </references>
    <structure>
        <ConsoleNode ConfigMenu="Delete" ChangedNodeID="MenuItem_TakeOffline" />
        <ConsoleNode ConfigMenu="Delete" ChangedNodeID="wsaHideMenu" />
        <ConsoleNode ConfigMenu="Delete" ChangedNodeID="MenuItem_CreateDocLib" />
        <ConsoleNode ConfigMenu="Delete" ChangedNodeID="MenuItem_CreateSite" />
        <ConsoleNode ConfigMenu="Delete" ChangedNodeID="MenuItem_Create" />
        <ConsoleNode ConfigMenu="Delete" ChangedNodeID="wsaManageSiteUIVersion4" />
        <ConsoleNode ConfigMenu="Delete" ChangedNodeID="MenuItem_EditSite" />
    </structure>
</Console>

Labels: ,