Adding links to View Selectors through SharePoint Features

Using Features makes it easy to add actions to menus of the user interface in SharePoint. To define a custom action for a particular menu, you must identify the menu by setting the location to the appropriate SharePoint namespace, and by using the ID that SharePoint uses to identify the specific location. The following example shows how to add a link to to the a view selector through a Feature.

<CustomAction
    Id="custom.ActionMenu"
    Location="Microsoft.SharePoint.StandardMenu"
    GroupId="ViewSelectorMenu"
    Title="XSLT View"
    RegistrationType="List"
    RegistrationId="101"

  >
<UrlAction Url="xsltdataviewurl.aspx"/>
</CustomAction>
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s