This project is read-only.

Event fired when Updating a contetnItem

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

I am going through this post to add dependencty to the ContentPart that I have created. I have gone though this post 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 9: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.