Click or drag to resize

PresentationsAdminServicesRemoveContentUnitView Method


Removes the built-in view of a content unit. Note that this action could break content unit, if the unit doesn't have a view in DSS project

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

Parameters

data
Type: SystemString
Unique id of the content unit to remove built-in view from

Return Value

Type: XHRServiceResponseGenericContentUnitPreviewData

Content unit preview data before built-in view is removed

Examples

Sample JSON return

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