Click or drag to resize

PresentationsAdminServicesGetContentUnits Method


Retrives collections of all content units.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<ContentUnitListResult> GetContentUnits()

Return Value

Type: XHRServiceResponseGenericContentUnitListResult

Collections of content units, separated into component units and field units groups.

Examples

Sample JSON return

JavaScript
{
    "ContentFreezeEndTime": "",
    "ContentFreezeStartTime": "",
    "code": 0,
    "error": null,
    "message": {
        "componentUnits": [
            {
                "AllowedSchemas": [],
                "ComponentSchemaId": "schemas\/VisualFormBuilderForm",
                "ComponentSchemaName": "FormBuilder_Form",
                "ElementName": "FormBuilder_Form",
                "HasView": false,
                "IconName": "11",
                "Id": "ComponentContentUnits\/VisualFormBuilderForm",
                "IsComponentUnit": true,
                "Name": "Visual Form Builder - Form",
                "Reusable": true,
                "TemplateName": "FormBuilder_Form",
                "ThumbnailPath": ""
            },
            {
                "AllowedSchemas": [],
                "ComponentSchemaId": "schemas\/VisualFormBuilderFormFieldButton",
                "ComponentSchemaName": "FormField_Button",
                "ElementName": "FormField_Button",
                "HasView": false,
                "IconName": "9",
                "Id": "ComponentContentUnits\/VisualFormBuilderFormFieldButton",
                "IsComponentUnit": true,
                "Name": "Visual Form Builder - Form Field - Button",
                "Reusable": true,
                "TemplateName": "FormField_Button",
                "ThumbnailPath": ""
            },
            {
                "AllowedSchemas": [],
                "ComponentSchemaId": "schemas\/VisualFormBuilderFormFieldCaptcha",
                "ComponentSchemaName": "FormField_Captcha",
                "ElementName": "FormField_Captcha",
                "HasView": false,
                "IconName": "9",
                "Id": "ComponentContentUnits\/VisualFormBuilderFormFieldCaptcha",
                "IsComponentUnit": true,
                "Name": "Visual Form Builder - Form Field - Captcha",
                "Reusable": true,
                "TemplateName": "FormField_Captcha",
                "ThumbnailPath": ""
            },
            {
                "AllowedSchemas": [],
                "ComponentSchemaId": "schemas\/VisualFormBuilderFormFieldCheckbox",
                "ComponentSchemaName": "FormField_Checkbox",
                "ElementName": "FormField_Checkbox",
                "HasView": false,
                "IconName": "9",
                "Id": "ComponentContentUnits\/VisualFormBuilderFormFieldCheckbox",
                "IsComponentUnit": true,
                "Name": "Visual Form Builder - Form Field - Checkbox",
                "Reusable": true,
                "TemplateName": "FormField_Checkbox",
                "ThumbnailPath": ""
            },
            {
                "AllowedSchemas": [],
                "ComponentSchemaId": "schemas\/VisualFormBuilderFormFieldSelection",
                "ComponentSchemaName": "FormField_Selection",
                "ElementName": "FormField_Selection",
                "HasView": false,
                "IconName": "9",
                "Id": "ComponentContentUnits\/VisualFormBuilderFormFieldSelection",
                "IsComponentUnit": true,
                "Name": "Visual Form Builder - Form Field - Selection",
                "Reusable": true,
                "TemplateName": "FormField_Selection",
                "ThumbnailPath": ""
            },
            {
                "AllowedSchemas": [],
                "ComponentSchemaId": "schemas\/VisualFormBuilderFormFieldText",
                "ComponentSchemaName": "FormField_Text",
                "ElementName": "FormField_Text",
                "HasView": false,
                "IconName": "9",
                "Id": "ComponentContentUnits\/VisualFormBuilderFormFieldText",
                "IsComponentUnit": true,
                "Name": "Visual Form Builder - Form Field - Text",
                "Reusable": true,
                "TemplateName": "FormField_Text",
                "ThumbnailPath": ""
            }
        ],
        "fieldUnits": [
            {
                "AllowedSchemas": [],
                "ComponentSchemaId": "",
                "ComponentSchemaName": "",
                "ElementName": "Copy",
                "HasView": false,
                "IconName": "-1",
                "Id": "ContentUnits\/33",
                "IsComponentUnit": false,
                "Name": "Copy",
                "Reusable": true,
                "TemplateName": "Copy",
                "ThumbnailPath": ""
            },
            {
                "AllowedSchemas": [],
                "ComponentSchemaId": "",
                "ComponentSchemaName": "",
                "ElementName": "Header3",
                "HasView": true,
                "IconName": "-1",
                "Id": "ContentUnits\/1",
                "IsComponentUnit": false,
                "Name": "Header 3",
                "Reusable": true,
                "TemplateName": "Header3",
                "ThumbnailPath": ""
            }
        ]
    }
}
See Also