Is it possible to attach to the contour form created/deleted events? If so, how is this accomplished?
I'm trying to write a cache handler for a courier contour provider. I'm basing it off of the CourierContrib CacheHandler V6, and it looks like I need to attach to the contour form created event to get this to work.
Attach to Contour form Created Event
Is it possible to attach to the contour form created/deleted events? If so, how is this accomplished?
I'm trying to write a cache handler for a courier contour provider. I'm basing it off of the CourierContrib CacheHandler V6, and it looks like I need to attach to the contour form created event to get this to work.
Anyone have any clues?
ping ping ping
Hi,
I am attempting a similar thing to you. The two events you are looking for live in:
You will need to subscribe to the
FormCreated
andFormUpdated
events.You should be able to inspect the properties of the FormEventArgs in the FormUpdated event, and determine if the form is deleted or not.
I have a post here which may help you to see how I hook into FormCreated. I will update with my final solution once it works (hopefully tomorrow): http://stackoverflow.com/questions/25549979/umbraco-6-contour-forms-3-add-default-fields-on-creating-new-form
Have fun!
is working on a reply...