Click or drag to resize

PresentationsAdminServicesFinalizeContentUnitView Method


Checks in the mark for publish the content unit built-in, so it is ready for deployment

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<ContentUnitPreviewData> FinalizeContentUnitView(
	ContentUnitCheckinData data
)

Parameters

data
Type: ContentUnitCheckinData

View code and mark for publishing information

Examples

Sample JSON input

JavaScript
{
    "ID": "ComponentContentUnits/1",
    "AssetViewId": "",
    "AssetViewCode": "@model Ingeniux.Runtime.ICMSElement\r\n@using Ingeniux.Runtime\r\n@if (Model != null)\r\n{\r\n\t<div @_Helpers.RenderICEAttribute(Model)>@Model.Value</div>\r\n}",
    "Comments": "",
    "PubTargetIds": [
        "PublishingTargets/1"
    ]
    }

Return Value

Type: XHRServiceResponseGenericContentUnitPreviewData

Content unit built-in view data, after finalization

Examples

Sample JSON return

JavaScript
{
    "ContentFreezeEndTime": "",
    "ContentFreezeStartTime": "",
    "code": 0,
    "error": null,
    "message": {
        "ID": "ComponentContentUnits\/1",
        "Name": "Right Copy",
        "AssetViewCode": "@model Ingeniux.Runtime.ICMSElement\u000d\u000a@using Ingeniux.Runtime\u000d\u000a@if (Model != null)\u000d\u000a{\u000d\u000a\u0009<div @_Helpers.RenderICEAttribute(Model)>@Model.Value<\/div>\u000d\u000a}",
        "AssetViewCodeEsc": "@model Ingeniux.Runtime.ICMSElement\u000d\u000a@using Ingeniux.Runtime\u000d\u000a@if (Model != null)\u000d\u000a{\u000d\u000a\u0009&lt;div @_Helpers.RenderICEAttribute(Model)&gt;@Model.Value&lt;\/div&gt;\u000d\u000a}",
        "AssetViewId": "a\/9704",
        "CanEditView": true,
        "Finalized": true,
        "UseExistingView": false
    }
}
See Also