SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I have a customized alert template that gets attached to all Document Libraries at the time a particular Site Definition is created. This is done by a feature that is stapled to the Site Definition when it is activated. This is fine and good.

The problem I have now is that when a new Document Library is created, the feature is not reset, and therefore doesn't swap to the new Alert Template. How do I capture the creation of the SPList (SPDocumentLibrary) at time of creation.

share|improve this question
"a new Document Library is created" or "capture the creation of the SPList (SPDocumentLibrary) at time of creation"? Depends on it you can use different kinds of event receivers. – Anton Khritonenkov Nov 15 '11 at 3:55

The SPListEventReceiver.ListAdded was introduced in SharePoint 2010 and AFAIK it does not exist for SharePoint 2007.

Maybe you can change your approach and register your event handler to a list type or a content type.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.