6

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#?

2 Answers 2

7

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.

1

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

Check details on MSDN.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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