This project is read-only.

ContentPart Handler - Update

Topics: Writing modules
Apr 12, 2013 at 7:54 PM
I am trying to send a message every time a specific Content Part is updated, created or deleted.

When is created or deleted I use the Content Handler: OnCreated and OnRemoving to send the message.

But during the update I need the previous state of the ContentPart and the new Data also.

Apr 12, 2013 at 11:39 PM
You could probably come up with something if you implement both the Updating as well as the Updated events.
E.g. in Updating, you copy the required data to a private field, which is available to you in Updated, from where you will receive the updated content item.
Apr 15, 2013 at 9:45 PM
Thanks. I implement that, during OnUpdating I save the values and get them OnUpdated along with the new values.