XML Schema Definition An XML document that defines custom actions must validate with the schema defined in the file wss.xsd. This file is located on the following path: %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\XML. Elements Elements CustomActionGroup CustomAction HideCustomAction The CustomActionGroup element contains the core definition for a grouping of custom actions. The UrlAction element must be used to specify the URL for a custom action. If no action is specified (an error condition), the link is displayed but it is not linked to anything. Use the HideCustomAction element to hide an existing action that is implemented by default within the infrastructure of Microsoft SharePoint Foundation Features, or within another custom action. For a list of the default custom action IDs, see Default Custom Action Locations and IDs. Example
Interested in mastering SharePoint ? Learn more about SharePoint Tutorial in this blog post.
XML
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomActionGroup Id="PortalAnalytics" Location="Microsoft.SharePoint.Administration.ApplicationManagement" Title="Usage Reporting" Sequence="50" /> <CustomAction Id="ManageAnalytics" GroupId="PortalAnalytics" Location="Microsoft.SharePoint.Administration.ApplicationManagement" Sequence="10" Title="Configure usage reporting" > <UrlAction Url="_layouts/SpUsageConfig.aspx"/> </CustomAction> <HideCustomAction Id="HideWssSiteCollectionUsage" HideActionId="SiteCollectionUsage" GroupId="SiteCollectionAdmin" Location="Microsoft.SharePoint.SiteSettings" /> <HideCustomAction Id="HideWssWebUsage" HideActionId="WebUsage" GroupId="SiteAdministration" Location="Microsoft.SharePoint.SiteSettings" /> <CustomAction Id="PortalSiteUsage" GroupId="SiteCollectionAdmin" Location="Microsoft.SharePoint.SiteSettings" Rights="ViewUsageData" Sequence="30" Title="Site usage data"> <UrlAction Url="_layouts/SpUsageSite.aspx" /> </CustomAction> <CustomAction Id="PortalWebUsage" GroupId="SiteAdministration" Location="Microsoft.SharePoint.SiteSettings" Rights="ViewUsageData" Sequence="30" Title="Web usage data"> <UrlAction Url="_layouts/SpUsageWeb.aspx" /> </CustomAction> </Elements>
Feature Element (Feature) Defines a Feature to activate or deactivate at a specified scope.
<Feature ActivateOnDefault = "TRUE" | "FALSE" AlwaysForceInstall = "TRUE" | "FALSE" AutoActivateInCentralAdmin = "TRUE" | "FALSE" Creator = "Text" DefaultResourceFile = "Text" Description = "Text" Hidden = "TRUE" | "FALSE" Id = "Text" ImageUrl = "Text" ImageUrlAltText = "Text" ReceiverAssembly = "Text" ReceiverClass = "Text" RequireResources = "TRUE" | "FALSE" Scope = "Text" SolutionId = "Text" Title = "Text" UIVersion = "Text" Version = "Text" > </Feature>
For Indepth understanding of SharePoint click on
You liked the article?
Like : 0
Vote for difficulty
Current difficulty (Avg): Medium
1/3
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.
Stay Updated
Get stories of change makers and innovators from the startup ecosystem in your inbox