Click or drag to resize

PresentationsAdminServicesGetContentUnitPreviewData Method


Retrieves preview data for a specific content unit

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

Parameters

data
Type: SystemString
Unique id of the content unit

Return Value

Type: XHRServiceResponseGenericContentUnitPreviewData

Information on the preview of content unit. Including built-in view asset code if exists

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": "",
        "CanEditView": true,
        "Finalized": false,
        "UseExistingView": false
    }
}
See Also