Sunday, March 23, 2014

Adding Custom Action Menu using VS.Net 2010 under the PersonalActions group navigation in SharePoint 2010

This post is about How to Add custom Standard Menu under Top Right Navigation global menu (Personal Action)

Step 1- Create a blank SharePoint Project in VS.Net 2010
Step 2- Right click and add new Elements.xml file in your project.
Step 3- In below code I am adding Home Page link under Top Right Standard navigation menu(Personal Actions).So please use GroupId="PersonalActions"and Location="Microsoft.SharePoint.StandardMenu" in your Elements.xml file as given below....


<?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"
  ImageUrl="/_layouts/images/HOME.GIF"
  Title="Open Home Page"
  Description="Navigate to Parent Site Home page">
    <UrlAction Url="SitePages/Home.aspx"/>
  </CustomAction>
</Elements>

Step 4- Right click and deploy your project, see result here...







No comments:

Post a Comment

SharePoint Deployment Error : The specified path, file name, or both are too long.

Hi, Sometimes we get surprised with below error while deploying wsp file... Solution : To overcome with this issue, we just ne...