Elements Element (Custom Action)
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Top-level element in a Feature manifest file that contains Feature element declarations.
<Elements
xmlns = "http://schemas.microsoft.com/sharepoint/">
</Elements>
Attributes
Attribute |
Description |
---|---|
xmlns |
Specifies the Windows SharePoint Services schema: http://schemas.microsoft.com/sharepoint/ |
Child Elements
Parent Elements
None |
Example
The following example defines a custom action for a Feature that adds a link to the toolbar of the Display form.
<Elements
xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="SimpleAction"
RegistrationType="List"
RegistrationId="101"
Location="DisplayFormToolbar"
Sequence="100"
Title="Simple Document Action"
Description="This is an example of a simple document action.">
<UrlAction
Url="/_layouts/sampleurl.aspx?id={ItemId}"/>
</CustomAction>
</Elements>