Saturday, 27 July 2013

Customize Site Action menu in SharePoint 2010 using Custom Action

1.Create an Empty Sharepoint Empty Project
2.Add an Element file
3.Write the below Code inside the Elements Tag

 <CustomAction
     Id="MyCustomAction"
     Description="This is my custom action."
     Title="Open Application Page"
     GroupId="SiteActions"
     Location="Microsoft.SharePoint.StandardMenu"
     ImageUrl="/_layouts/Images/SPCustomAction/MyImage.bmp"
     Sequence="10">
    <UrlAction Url="SitePages/TestPage1.aspx"/>
  </CustomAction>

Deploy your solution you will see the custom Menu in site Action Menu

No comments:

Post a Comment