Event Receiver Management
One of the things from SPS 2003 that didn't make it into MOSS 2007 was a way, via the UI, to specify an event receiver for a document library. This seems bizarre considering the facts that you can now have multiple event receivers for a single document library, and you can now have event receivers on lists as well as document libraries.
To get around this I've developed the "Event Receivers Manager" solution, which I've uploaded to CodePlex (http://www.codeplex.com/elblanco). This is the first of the free add-ons I intend to release for things that really bug me about SharePoint – watch this space for more useful things in the future.
Once you've downloaded the solution you can install it as normal for SharePoint:
stsadm –o addsolution –filename C:\BlancoWorld.EventReceiversManager.wsp
Then when added to the solution store you can either deploy via the Central Administration site or via the command line:
stsadm –o deploysolution –name BlancoWorld.EventReceiversManager.wsp –immediate –allowGacDeployment
This will install the "BlancoWorld SharePoint Event Receivers Manager" feature as a site collection feature – activate this feature and you'll now be good to go . . .
From a list's settings page within SharePoint will now be a new link called "Event Receivers":
Clicking on this link shows all the event receivers for the list: Using the drop-down menu you can delete existing event receivers:Or edit existing event receivers:
You can also click the "New" toolbar button to add a new event receiver – you must specify the type, assembly name, and class name:
I hope others find this add-on useful, please leave me comments regarding any issues or improvements you'd like to see. Planned improvements at this stage are:
- The site map provider functionality that provides the breadcrumb is not 100% there yet – I need to spend more time on it.
- I'd like to enable column sorting on the page that lists the event handlers to allow the user to click on the column headings to sort the event handlers.
- The "Edit" functionality from the drop down menu only actually lets you view the details. I intend to amend this to allow you to edit the properties.
- The "Delete" functionality from the drop down menu takes you to a separate page to confirm deletion – I'd like to make this a client-side confirmation.
- When adding a new event handler I intend to add functionality allowing you to also specify the Sequence.
I've released it as-is since I thought it might be useful for others – if you have any opinions on which of my planned improvements you'd like to see first, then let me know. Also if you have any other improvements you'd like to see, again, let me know.
Enjoy !