Customise SharePoint 2010 “Site actions” menu

The Site Actions menu is available on every page inside of SharePoint Foundation. You can add an additional item to this menu using the following custom action. Let’s start J

1. Create an empty SharePoint project in visual studio 2010

Now edit your element file to reflect what you needed (The additional menu item on the site action drop down menu), here is a sample code to create a “Custom Settings” link which goes to a page in SharePoint called “/SitePages/CustomSettings.aspx”

<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

  <CustomAction Id="SiteActionsToolbar"

     GroupId="SiteActions"

     Location="Microsoft.SharePoint.StandardMenu"

     Sequence="1000"

     Title="Custom Settings"

     Description="Custom site settings"

     ImageUrl="_layouts/ebloginImages/logo.png">

    <UrlAction Url="/SitePages/CustomSettings.aspx"/>

  </CustomAction>

</Elements>

Your site action menu will have a new option as shown in below picture.

                                 

Blogs

See More Articles

Contact us

To begin your digital transformation, get in touch.

We’re pleased to address any inquiries you might have and assist you in selecting the service that best suits your requirements.

Your benefits:
Speak To Us