Custom general settings options for a list

Hi,

I'm working on an event handler for a document library, based on a content type. This event handler is updating listcolumns based on the file name (Which is impossible with calculated column)

I don't have any questions about the event handler himself, but I wan't to be able to let the site administrator to choose -or not- if this Event Handler is binded the the list: My goal is to add in the "General Settings" of the List Settings menu, a radio button with the choice to scope this list with the event handler...

Do you have any clue to do that?

Regards, 

Charles BORCKE

January 31st, 2015 9:27am

Hi Charles:

We must modify our Feature.xml and Elements.xml as follows:

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

<Feature Id="65a738a0-a095-489e-be19-82c077edea9f"
Title="Our Custom Settings"
Description="Your Custom Settings on any list despcription"
Version="12.0.0.0"
Hidden="FALSE"
Scope="Web"
DefaultResourceFile="core"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="elements.xml"/> 
</ElementManifests>
</Feature>
  • Elements.xml
<?xml version="1.0" encoding="utf-8" ?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="Custom.Configuration.ListCustomSettings"
GroupId="GeneralSettings"
Location="Microsoft.SharePoint.ListEdit"
RequireSiteAdministrator="FALSE"
Sequence="100"
Title="Custom Settings">
<UrlAction
Url="_layouts/ListCustomSettings/ListSetting.aspx?List={ListId}" />
</CustomAction>
</Elements>

After you deploy, you will get a new hyperlink on the List Settings Page.

If you want to get full information, you can refer to folloing SharePoint Features Schema URL: https://msdn.microsoft.com/en-us/library/ms414322(v=office.15).aspx

Free Windows Admin Tool Kit Click here and download it now
January 31st, 2015 10:12am

try these links:

http://sharepoint.infoyen.com/2012/04/22/custom-action-menu-in-sharepoint/

https://social.msdn.microsoft.com/Forums/en-US/7f2a58dc-d4a4-44d9-bdf7-7d2382a2bd32/custom-action-in-elementsxml-file?forum=sharepointdevelopmentprevious

http://stackoverflow.com/questions/7645174/add-custom-link-to-sharepoint-list-settings-page-by-code

http://johanolivier.blogspot.in/2010/07/custom-settings-for-sharepoint-list-or.html

http://corypeters.net/2010/12/adding-links-to-site-settings/

http://www.c-sharpcorner.com/UploadFile/sagarp/create-custom-list-property-in-sharepoint-list-setting/

https://msdn.microsoft.com/en-us/library/ms414322(v=office.15).aspx

--------------------------------------------------------------------------------------------------------------------------------------

Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

February 2nd, 2015 2:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics