Just another WordPress.com weblog

Using Features makes it easy to add actions to menus and the Server ribbon in . The following examples show how to add actions to various menus through a Feature. Each example uses the same project created in SharePoint development tools in Microsoft Visual Studio 2008.
Create the SharePoint Project

1.Start SharePoint development tools in Visual Studio 2008.
2.On the File menu, point to New, and then click Project.
3.In Project Types, under Visual Basic or C#, select WSPBuilderProject.
4.Type CustomMenu as the project name. Click OK.
5.Right click on the CustomMenu project in the Solution Explorer and choose Add then New Item.
6.In the Add New Item dialog, choose the Blank Feature template. Enter CustomActionFeature as the Name.
7.Then select the scope as site
8.Open the Elements.xml file.Copy the below code
Title=”Open Custom Page”
Description=”Open my custom page”
<UrlAction Url=”~site/_layouts/CustomPage.aspx”/>

For more Default Custom Action Locations and IDs refer below url


9.Save it.
10.Build the project.
11.Right click on the CustomMenu project in the Solution Explorer and choose WSPBuilder>BuildWSP
12.Finally deploy the WSP file
13.You will get the new menu called “Open Custom Page” under the site actions


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 )

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

Tag Cloud

%d bloggers like this: