This example shows how to add custom links under site administrator from site settings page. Below is Elements.xml modification

<Elements xmlns=”http://schemas.microsoft.com/sharepoint/“>
  <CustomActionGroup Id=”DF784448-CD3F-4221-9B8A-69769FA961EE” Title=”Cargolink Adminsitration” Location=”Microsoft.SharePoint.SiteSettings” Sequence=”110” />
<CustomAction Id=”EDBEB420-A817-4896-BE42-F5B9048C0CF5” Title=”Manage Company Profile” Location=”Microsoft.SharePoint.SiteSettings” GroupId=”DF784448-CD3F-4221-9B8A-69769FA961EE” Sequence=”120” RequireSiteAdministrator=”True“>
  <UrlAction Url=”_layouts/CargoLink/CompanyProfile.aspx” />
  </CustomAction>
<CustomAction Id=”29020219-0C09-4ef0-BF0A-8921F99AD1B0” Title=”Import from CSV” Location=”Microsoft.SharePoint.SiteSettings” GroupId=”DF784448-CD3F-4221-9B8A-69769FA961EE” Sequence=”130” RequireSiteAdministrator=”True“>
  <UrlAction Url=”_layouts/CargoLink/CompanyImport.aspx” />
  </CustomAction>

   </Elements>

This will create a new custom group called “Cargolink Administration” under the site settings page and have the 2 links placed under it.

There is a property which says RequireSiteAdminsitrator and its made as true. So in that case if non-adminsitrators will not be able to load the page. You can test the permissions too.

If you want to place the links under Site Administration group in Site settings page,this is what you write.

<CustomAction Id=”EDBEB420-A817-4896-BE42-F5B9048C0CF5” Title=”Manage Company Profile” Location=”Microsoft.SharePoint.SiteSettings” GroupId=”SiteAdministration” Sequence=”120” RequireSiteAdministrator=”True“>
  <UrlAction Url=”_layouts/CargoLink/CompanyProfile.aspx” />
  </CustomAction>
<CustomAction Id=”29020219-0C09-4ef0-BF0A-8921F99AD1B0” Title=”Import from CSV” Location=”Microsoft.SharePoint.SiteSettings” GroupId=”SiteAdministration” Sequence=”130” RequireSiteAdministrator=”True“>
  <UrlAction Url=”_layouts/CargoLink/CompanyImport.aspx” />
  </CustomAction>
  </Elements>
 
From feature.xml in call this element.xml as
<?xml version=”1.0″ encoding=”utf-8″ ?>
<Feature Id=”8f20690b-efb1-46bf-99dd-688aab89ac2e” Title=”Cargolink Administration” Description=”Cargolink Administration Pages” Version=”12.0.0.0” Hidden=”FALSE” Scope=”Web” DefaultResourceFile=”core” xmlns=”http://schemas.microsoft.com/sharepoint/“>
<ElementManifests>
  <ElementManifest Location=”elements.xml” />
  </ElementManifests>
  </Feature>
 
Run the stsadm to install the feature.

Stsadm to install feature

 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN>stsadm -o installfeature -name “CargolinkAdministration”  -force

The go to site site actions -> site settings Site Features and Activate the Feature “Cargolink Adminisrtation” .