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
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.
No need for C# code, it can be done declaratively with custom actions through a feature.
Check details on MSDN.