Thursday, November 22, 2012

add custom link and custom group in sharepoint site settings page using feature

Create a empty sharepoint solution vs2010-> new Project-> Empty Sharepoint 2010 solution Add New Fature Right click on "Feature" Add new feature Add New Item-> select "Empty Element" You'll get Element.xml file in the project Add Following xml to the Elements.xml



<?xml version="1.0" encoding="utf-8"?>


<Elements xmlns="http://schemas.microsoft.com/sharepoint/">


  <CustomActionGroup


    Id="CustomFeatureGroup"


    Title ="PolicySignOff"


    Sequence="1000" Location="Microsoft.SharePoint.SiteSettings"


    ImageUrl="../_layouts/dhq_icon.png">


  </CustomActionGroup>


  <CustomAction


     Id="CustomFeatureLink"


     GroupId="CustomFeatureGroup"


     Location="Microsoft.SharePoint.SiteSettings"


     Sequence="1000"


     Title="PolicySignOff Settings">


    <UrlAction


          Url="/_layouts/settings.aspx"/>


  </CustomAction>


</Elements>


here "Custom Action Group" tag will add new group in the site settings page. "Custom Action" will add new custom link. We need to mention the custom Group and Location in the tag. For default sharepoint Group id's and link's check here. Add following xml in feature.xml file



<feature activateondefault="TRUE" alwaysforceinstall="TRUE" autoactivateincentraladmin="FALSE" description="Will create a link for PolicySignOff Settings" hidden="FALSE" id="{GUID}" imageurl="dhq_icon.png" scope="Site" title="{Title}" xmlns="http://schemas.microsoft.com/sharepoint/">


  <elementmanifests>


    <elementmanifest location="{Elemnts.xml location}">


    </elementmanifest>


  </elementmanifests>


</feature>

You need to activate the feature. You'll get custom group and custom links in site settings page.

Share this

1 Response to "add custom link and custom group in sharepoint site settings page using feature"

  1. Hi, Very nice description about
    I like your web blog.Because whenever i come into your web blog
    then i always get the new interesting and important information in your web blog.

    Thank You
    SharePoint Solutions

    ReplyDelete