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.
Elements.xml:
- 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.
- See the SharePoint 2010 custom site action Menu Link in action!
<?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
nice article
ReplyDeleteGreat very helpful
ReplyDelete