Thursday, September 2, 2010

How to Add a Link to SharePoint Site Actions Menu

You can create a Custom link in Site Action Menu using CustomAction feature code. My Requirement is to add a new link "Support Center" in Site actions Menu, So that all site owners can easily access the SharePoint Support Center site.

  1. Create a folder in 12/14 hive's Features folder, say "Crescent.SharePoint.SupportLink" under C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES
  2. Create these two files  update them as per the below content
  3. Install and activate the feature. sharepoint add link to site actions menu
    See the SharePoint 2010 custom site action Menu Link in action!
Add Custom Link to SharePoint Site Actions Menu

Feature.xml:

<?xml version="1.0" encoding="utf-8" ?>
 <Feature Id="05BA4E54-C1E9-4244-8276-06451EBBB260" Title="SharePoint Support Center Link" Description="Shows Support Center Link in Site Actions Menu" Scope="Site"
         xmlns="http://schemas.microsoft.com/sharepoint/">
 
  <ElementManifests>
  <ElementManifest Location="Elements.xml" />
   </ElementManifests>
  
 </Feature>

Elements.xml:

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 
 <CustomAction Id="SupporCenterLink" GroupId="SiteActions"
          Location="Microsoft.SharePoint.StandardMenu" Sequence="2000"
               Title="Support Center" Description="Go to Support Center for SharePoint Tutors, Requests, FAQs, etc." 
                    ImageUrl="_layouts/Crescent/Images/supportLink.png" >
 <UrlAction Url="http://support.company.com/sharepoint" />
 
 </CustomAction>
</Elements>

As a Best practice, pack these xml & Image as a Solution in Visual Studio, So that It can be deployed anywhere. can read more about the custom action on MSDN: http://msdn.microsoft.com/en-us/library/bb418728.aspx



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

2 comments :

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...