Adding Items to the Welcome Menu in SharePoint 2010

Adding a new menu item to the SharePoint welcome/user menu.
1.       Create a new empty SharePoint project in Visual Studio 2010, call it "WelcomeMenuItem".
2.       Deploy as a farm solution and click finish.
3.       Add a feature to the project. In the solutions explorer box, right click on the feature node and add feature.
4.       Also in the solution explorer, right click the top “WelcomeMenuItem” node and add new item.
5.       Add an empty Element called "MenuAddElement".
6.       Once added, open the menuAddElement > Elements.xml file.
7.       Replace the Elements.xml code with the following:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
<CustomAction
  Id="myCustomAction"
GroupId="PersonalActions"
Location="Microsoft.SharePoint.StandardMenu"
Sequence="1000"
Title="Google"
Description="Search ">
<UrlAction Url="http://www.google.com"/> 
</CustomAction>
</Elements>

8.       Save the Elements.xml file and then in the solutions explorer double click on the feature1.feature node.
9.       Ensure the MenuAddElement is included the items in the feature.

Deploy the solution to your SharePoint server.
Once deployed, refresh your site home page and the new menu item should be visible.

Comments

Popular posts from this blog

Activating a SharePoint Feature on Multiple Sites or Site Collections using PowerShell

Managed Path with WildCard and Explicit Inclusion

List All SharePoint 2010 PowerShell Commands