you can create a native looking General Settings in
list/ library settings:
On click of the link, you can write our code behind logic with the help of SharePoint Application page.
For Demo, Currently, I have created an application page as below: http://<<ServerURL>>/_layouts/EmptyList/ConfigListVersions.aspx?List={8c579b97-0fb7-41e1-ba73-14676ec3e9f5}
Below are the steps:
- Create an Empty Visual Studio SharePoint project
- Right click on project and add a new Item as below:
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