Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I need to modify the Site Settings page in a site collection to include an extra link. How can I go about doing this using c#?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

You need to deploy a custom action in a feature that looks like this:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
  <CustomAction 
     Id="YourLinkId" 
     GroupId="SiteCollectionAdmin" 
     Location="Microsoft.SharePoint.SiteSettings" 
     RequireSiteAdministrator="true" 
     Sequence="30" 
     Title="Display text for your link"> 
    <UrlAction Url="link to your page" /> 
  </CustomAction> 
</Elements>

Read Custom Action Schema for GroupId and Location values.

share|improve this answer

No need for C# code, it can be done declaratively with custom actions through a feature.

Check details on MSDN.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.