Adding Items to the User/Welcome Menu in SharePoint 2010

Adding a new menu item to the SharePoint welcome/user menu is fairly straight forward.
Page Content

 

Adding a new menu item to the SharePoint welcome/user menu is fairly straight forward.

Thanks to Sohels blog for pointing me in the right direction.

First create a new empty SharePoint project in Visual Studio 2010, call it “MenuItemProject”.

2011-08-30-AddingItems-01.jpg

Deploy as a farm solution and click finish.

2011-08-30-AddingItems-02.jpg

Add a feature to the project. In the solutions explorer box, right click on the feature node and add feature.

2011-08-30-AddingItems-03.jpg

Also in the solution explorer, right click the top menuItemProject node and add > new item.

2011-08-30-AddingItems-04.jpg

Add an empty Element called “MenuAdditionElement”.

2011-08-30-AddingItems-05.jpg

Once added, open the menuAdditionElement > Elements.xml file.

2011-08-30-AddingItems-06.jpg

Replace the Elements.xml code with the following:

01 <?xml version="1.0" encoding="utf-8"?>
03    <CustomAction
04    Id="myCustomAction"
05    GroupId="PersonalActions"
06    Location="Microsoft.SharePoint.StandardMenu"
07    Sequence="1000"
08    Title="Google"
09    Description="Search away">
10      <UrlAction Url="http://www.google.com"/>
11    </CustomAction>
12 </Elements>

Save the Elements.xml file and then in the solutions explorer double click on the feature1.feature node.

2011-08-30-AddingItems-07.jpg

Ensure the MenuAddition Element is included in the items in the feature.

2011-08-30-AddingItems-08.jpg

Deploy the solution to your SharePoint server.

Once deployed, refresh your site home page and the new menu item should be visible.

2011-08-30-AddingItems-09.jpg

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: