How to add a Link to SharePoint Site Actions Menu?
You can create a Custom link in Site Action Menu using the CustomAction feature code. My Requirement is to add a new link “Support Center” in the Site actions Menu So that all site owners can easily access the SharePoint Support Center site.
- 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
- Create these two files update them as per the below content
- Install and activate the feature.
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="https://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="Elements.xml" />
</ElementManifests>
</Feature>
Elements.xml:
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="https://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="https://support.company.com/sharepoint" />
</CustomAction>
</Elements>
Here is the output:
As a Best practice, pack these XML & Image as a Solution in Visual Studio, So that they can be deployed anywhere. Can read more about the custom action on MSDN: https://msdn.microsoft.com/en-us/library/bb418728.aspx
Great very helpful
nice article