Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.