Event fired when Updating a contetnItem

Topics: Customizing Orchard
Feb 7, 2012 at 6:59 AM

I am going through this http://stackoverflow.com/questions/4727843/how-to-change-orchard-record-repository post to add dependencty to the ContentPart that I have created. I have gone though this post http://docs.orchardproject.net/Documentation/Understanding-content-handlers to implement custom storage for any new content item created. I can't get to fire any event when updating the item. I have tried both 

 OnVersioned<MyPart>((ctx, part1, part2) => PlanetStorageProvider.OnVersioned(ctx, part1, part2));           

OnUpdateEditorShape<MyPart>((ctx, part) => PlanetStorageProvider.OnUpdateEditorShape(ctx, part));


but in case of versioned both part1 and part2 are same even UpdateEditorShape is not having the new item.

Any help much appreciated.



Feb 7, 2012 at 8:12 PM

This is something which has been added in source code rihgt now. It will be available in next release or you can play with the source if you prefer.