fbpx

February 27, 2011

Customise SharePoint 2010 “Site actions” menu

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.

                                 

  • Related Tags:

(3) Comments

  1. Cheap Coach Bags

    Thank you for this website. Thats all I can say. You most definitely have made this blog into something thats eye opening and important. You clearly know so much about the subject, youve covered so many bases. Great stuff from this part of the internet. Again, thank you for this website.

  2. cheap sunglasses

    Wow! It is as if you understand my thoughts! A person appear to understand so considerably relating to this, like you wrote the book in it or some thing. I believe that you could perform with a few images to drive this content home a bit, on top of that, this really is informative weblog post. The fantastic study. I’ll certainly return.

Leave a comment