Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
General Reference
Feature Schemas
 HideCustomAction Element
Community Content
In this section
Statistics Annotations (5)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
HideCustomAction Element (Custom Action)

Hides an existing action that is implemented by default within the framework of Windows SharePoint Services Features, or within another custom action.

<HideCustomAction
  GroupId = "Text"
  HideActionId = "Text"
  Id = "Text"
  Location = "Text">
</HideCustomAction>
Attribute Description

GroupId

Optional Text. Identifies an action group that contains the action, for example, "SiteAdministration".

HideActionId

Optional Text. Specifies the ID of the custom action to hide, for example, "DeleteWeb". See Default Custom Action Locations and IDs for a list of the default custom action IDs that are used in Windows SharePoint Services. For more information about hiding custom action IDs, see the Remarks section, below.

Id

Optional Text.Specifies the ID of this hide custom action element, for example, "HideDeleteWeb".

Location

Optional Text. Specifies the location of the custom action to hide, for example, "Microsoft.SharePoint.SiteSettings". See Default Custom Action Locations and IDs for a list of the default custom action locations that are used in Windows SharePoint Services.

None

Note that HideCustomAction IDs are not limited to specific default Windows SharePoint Services custom actions. You can also hide custom actions that you create yourself when you write your own features. This means that for any CustomAction ID available in SharePoint 2007, you can have a corresponding HideCustomAction ID.

To locate custom action IDs, search in Windows File Explorer for the term “CustomAction.” By default, these are located in the folder %CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES. Here you will locate all of the features that contain specific CustomActions that are related to your specified feature. Depending upon your requirement, you may inspect the desired feature folder and check the underlying XML file to note the CustomAction IDs, GroupIDs and Locations for that feature. Furthermore, you can use the same information to write your HideCustomAction elements as required. Additionally, you can refer to the information listed in the WSS 3.0 SDK on the page titled How to: Add Actions to the User Interface.

Different actions may require using different CustomAction attributes to identify the menu where the custom menu item is placed. You may also need to specify other parameters for the action, for example, a version, user permissions required to perform the action, or placement in relation to existing actions in the menu. Similarly different HideCustomAction attributes may require different HideActionIds based upon which CustomAction you are trying to hide.

For an example of how this element is used, see Custom Action Definitions.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Location Id's      JohnHodg   |   Edit   |   Show History

Should be a link here to http://msdn2.microsoft.com/en-us/library/ms473643.aspx which provides what I consider to be an important list of location id's too; still looking for an exhaustive list of Action id's.

John Hodgson

Custom Action IDs and Group IDs      M. Blumenthal   |   Edit   |   Show History

Another good reference is SiteSettings.xml in 12\template\Features\SiteSettings on your MOSS server. It's this file that determines the links that show up on the site settings page (_layouts/settings.aspx). You should be able to use the information in SiteSettings.xml to create a new feature with HideCustomActions that hides any of the links and groups that SiteSettings.xml has added.

Syntax error - HideActionId etc are attributes, not contained.      Craigsc42   |   Edit   |   Show History
Attention SDK writers, editors and proofreaders (and other hapless readers). The syntax described above is INCORRECT. The contained settings for GroupId, HideActionId, Id & Location are attributes of the HideCustomAction element, NOT contained within it. I.e., the closing right angle bracket of <HideCustomAction, should not be there. Reference CustomAction for the correct syntax, or the example provided elsewhere in the SDK. It's a small thing, but important.
Table of Custom Action IDs      John Holliday ... elgu   |   Edit   |   Show History
To hide a custom action, you must know the identifier of the action you wish to hide. For a table of default custom action identifiers, see http://johnholliday.net/resources/customactions.html. For code you can use to obtain the custom identifiers that have been deployed to the local farm, see http://johnholliday.net/archive/2007/10/28/How-to-find-ltCustomActiongt-identifiers.aspx.
HideCustomAction does not work with some custom actions      Yaroslav Pentsarskyy   |   Edit   |   Show History
This syntaxt doesn't resolve some of the custom actions that are in sharepoint for example SingOut options from Welcome.ascx

www.sharemuch.com
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker