Wednesday, 20 May 2015

Create General Settings Link to the SharePoint list\library settings page

you can create a native looking General Settings in list/ library settings:
SharePoint Custom Setting














On click of the link, you can write our code behind logic with the help of SharePoint Application page.



Below are the steps:
  1. Create an Empty Visual Studio SharePoint project
  2. Right click on project and add a new Item as below:

  3. SharePoint Project












3. Add a module to the project and Add below logic which is causing the setting link to show in the General Settings section of the list:


<?xml version="1.0" encoding="utf-8"?>
  <CustomAction
    Id="MyCustomAction"
    GroupId="GeneralSettings"
    Location="Microsoft.SharePoint.ListEdit"
    Title="Empty List Items"
    Sequence="1"
    Rights="ManageLists"
    RegistrationType="ContentType"
    RegistrationId="0x">
    <UrlAction Url="~site/_layouts/EmptyList/ConfigListVersions.aspx?List={ListId}"/>
  </CustomAction>
</Elements>

No comments:

Post a Comment