Welcome to MSDN Blogs Sign in | Join | Help

How to enable document library event handlers for the newly created document libraries at the list definition level

The List definition files can be configured in such a way that the event handler configured automatically for the newly created document libraries. Here I provide the details of how to do it. 

  • Open the Site definition folder. If you use default Site definition, STS, then open the folder from the following location.

“C:\program files\common files\Microsoft Shared\web server extensions\60\template\1033\STS

Note: Modifying the default files is not supported by Microsoft. Microsoft recommends using custom Site Definition.

  • Open the List Definition folder. If you use default list definition for document library, then open the “DOCLIB” folder in the LISTS folder
  • Open the “SCHEMA.XML” file in notepad or visual studio
  • Modify the LIST node by adding the EventSingAssembly, EventSinkClass, and EventSinkData

<List xmlns:ows="Microsoft SharePoint" Name="CustomDocuments" Title="Custom Shared Documents" Direction="0" Url="Custom Shared Documents" BaseType="1" EventSinkAssembly="TestEventHandler, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=614ce6399d917f80"  EventSinkClass="TestEventHandler.MyEventHandler" EventSinkData = ""> 

Note:Here I hardcoded the EventSinkAssembly for sample. Could you please change it according to your component. 

  • Restart IIS.

After configuring the details, if you create new document library based on the list definition, then the document library event handler will be automatically configured.

Published Thursday, April 20, 2006 1:03 AM by Karthikeyan
Filed under:

Comments

# http://google.com/search?sourceid=navclient&ie=utf-8&rls=gglj,gglj:2006-35,gglj:en&q=sharepoint+2003+event+handlers+for+document+open

Tuesday, December 12, 2006 4:17 PM by TrackBack

# http://google.ie/search?hl=en&q=default+enable+document+versioning+in+document+library+sharepoint+&meta=

Tuesday, December 12, 2006 4:17 PM by TrackBack

# http://search.sympatico.msn.ca/results.aspx?q=enable+document+folder&form=msnh&setlang=en-ca&cp=65001

Tuesday, December 12, 2006 4:17 PM by TrackBack

# http://google.co.kr/search?hl=ko&q=eventsinkassembly&lr=

Tuesday, December 12, 2006 4:17 PM by TrackBack

# http://blogs.gotdotnet.com/

Tuesday, December 12, 2006 4:17 PM by TrackBack

# http://news.search.yahoo.com/search/news?p=library&x=wrt

Tuesday, December 12, 2006 4:17 PM by TrackBack

# http://bloglines.com/myblogs_display?sub=21674857&site=65553

Tuesday, December 12, 2006 4:17 PM by TrackBack

# http://search.sympatico.msn.ca/results.aspx?q=enable+document+folder&form=msnh&setlang=en-ca&cp=65001

Tuesday, December 12, 2006 4:17 PM by TrackBack

# Work from home business.

Monday, July 07, 2008 10:22 PM by Work at home www.work-at-home-tonight.com.

Work-from-home. The work at home institute. Data entry work from home.

# Cheap propecia.

Wednesday, August 06, 2008 11:40 PM by Natural herb reverse impotence from propecia.

Propecia. Order propecia online. Propecia online lowest prices for hair loss reduce. Propecia sexual side effects. Buy propecia buy cheap propecia online.

# Baby names search - Search for Koby

Tuesday, March 10, 2009 10:07 PM by Baby names search - Search for Koby

# Karthick s Blog How to enable document library event handlers for the | Hair Growth Products

# Karthick s Blog How to enable document library event handlers for the | work from home

Anonymous comments are disabled
 
Page view tracker