C# Class Rebel.Cms.Web.Editors.AbstractContentEditorController

Inheritance: StandardEditorController
Datei anzeigen Open project: RebelCMS/rebelcmsxu5

Protected Methods

Method Description
AbstractContentEditorController ( IBackOfficeRequestContext requestContext ) : System.Linq
ReconstructModelPropertyIds ( BasicContentEditorModel contentViewModel ) : void

This method is used for creating new content and for updating an existing entity with new attributes that may have been created on the document type (attribution schema).

We need to paste the model back together now with the correct Ids since we generated them on the last Action and we've re-generated them again now. This is done by looking up the Alias Key/Value pair in the posted form element for each of the model's properties. When the key value pair is found we can extract the id that was assigned to it in the HTML markup and re-assign that id to the actual property id so it binds.

Private Methods

Method Description
Delete ( HiveId id ) : System.Web.Mvc.JsonResult
Edit ( HiveId id ) : System.Web.Mvc.ActionResult

Method Details

AbstractContentEditorController() protected method

protected AbstractContentEditorController ( IBackOfficeRequestContext requestContext ) : System.Linq
requestContext IBackOfficeRequestContext
return System.Linq

ReconstructModelPropertyIds() protected method

This method is used for creating new content and for updating an existing entity with new attributes that may have been created on the document type (attribution schema).
We need to paste the model back together now with the correct Ids since we generated them on the last Action and we've re-generated them again now. This is done by looking up the Alias Key/Value pair in the posted form element for each of the model's properties. When the key value pair is found we can extract the id that was assigned to it in the HTML markup and re-assign that id to the actual property id so it binds.
protected ReconstructModelPropertyIds ( BasicContentEditorModel contentViewModel ) : void
contentViewModel Rebel.Cms.Web.Model.BackOffice.Editors.BasicContentEditorModel
return void