This project is read-only.

Persist data in Driver Display Method

Topics: Customizing Orchard, Português (Portuguese)
Oct 16, 2013 at 8:48 PM
Hi everyone,

I nedd to know if there is a way to persist data in Driver Method Display(MyPart part, string displayType, dynamic shapeHelper)

Inside the method, I need to do something like:

var item = _contentManager.Get(part.Id);
item.As<MyPart>().Property = 10;

and then, update model data with some method like _contentManager.UpdateEditor() or TryUpdateModel()

Is there a way to do that?
Oct 26, 2013 at 9:13 AM
Please provide the link to your cross-posted StackOverflow question.