Add a Custom Group of Actions in SharePoint 2007 Site Settings Page

Requirement: Adding a custom group of actions in SharePoint site settings page.

Solution:

We can create a feature to achieve this. Here is what I’ve done:

  • Create a folder “MyCustomAction” under: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES
  • Create these two files in MyCustomAction folder:
    • Feature.xml
    • Elements.xml

Place the below content in the above files:

Feature.xml

<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="https://schemas.microsoft.com/sharepoint/"
Id="5DFD12AF-D0AA-4c63-8FB8-C49DB1191083" Title="Custom Site Actions Feature" Description="Adds Custom Actions to the Site actions Menu" Scope="Site" Version="1.0.0.0">
    <ElementManifests>
        <ElementManifest Location="Elements.xml"/>
    </ElementManifests>
</Feature>

Elements.xml

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="https://schemas.microsoft.com/sharepoint/">

<!- Custom Action Group ->
<CustomActionGroup Id="MyActionGroup" 
Description="This group contains all my custom actions." 
Title="My Custom Action Group" 
Location="Microsoft.SharePoint.SiteSettings" Sequence="0" />
 
<!- Custom Action in Custom Action Group ->
<CustomAction 
	Id="MyCustomAction1" 
	Description="This link is a custom action." 
	Title="My Custom Action 1" 
	GroupId="MyActionGroup"
	Location="Microsoft.SharePoint.SiteSettings"
	Rights="ManageWeb" 
	RequireSiteAdministrator="FALSE"
	Sequence="1">
	<UrlAction Url="~sitecollection/_layouts/MyCustomPage1.aspx" />
</CustomAction>

<CustomAction
    Id="MyCustomAction2"
    Description="This link is a custom action."
    Title="My Custom Action 2" 
    GroupId="MyActionGroup"
    Location="Microsoft.SharePoint.SiteSettings"
    Rights="ManageWeb" 
    RequireSiteAdministrator="FALSE"
    Sequence="2">
   <UrlAction Url="~sitecollection/_layouts/MyCustomPage2.aspx" />
 </CustomAction>
</Elements>

Install and activate the feature by these commands:

stsadm -o installfeature -filename MyCustomAction\feature.xml
stsadm -o activatefeature -filename MyCustomAction\feature.xml -url https://Server/Site/Subsite
Iisreset

Finally, you will get the feature activated and shown under site settings page as below image

Add Custom Group to SharePoint Site Settings Page

For SharePoint 2010, Here is the article: Add a Link to Site Settings Page in SharePoint 2010   

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

One thought on “Add a Custom Group of Actions in SharePoint 2007 Site Settings Page

  • Awesome. It helped me very much.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *