Catch part attach/add event

Topics: Customizing Orchard, Writing modules
Jan 11, 2012 at 1:26 PM

I want to do some work after adding/attaching custom part to a content type, I don't know exactly the event to override in the part handler class or there is no event at all for that.

 

Also, still facing some troubles in http://orchard.codeplex.com/discussions/284715

Jan 11, 2012 at 5:57 PM

There's no events for when you modify part definitions unfortunately, although this would be really useful. You might be able to do something hackish in a ContentDefinitionEditorEventsBase where you can catch if the settings are updated of course.

Jan 11, 2012 at 6:42 PM
randompete wrote:

There's no events for when you modify part definitions unfortunately, although this would be really useful. You might be able to do something hackish in a ContentDefinitionEditorEventsBase where you can catch if the settings are updated of course.

I indeed, for now, make that workaround by handling content type part settings save event. Thanks :)