PageCommandsServicesGetPageVersion Method Ingeniux CMS Web Services API

Retrieves the content of a Page's specific version, also specifies whether to produce diffing results.

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 9.0.565.0 (9.0.565)
Syntax

public XHRServiceResponseGeneric<PageData> GetPageVersion(
	string pageId,
	int versionId,
	bool diffPage,
	bool revert
)

Parameters

pageId
Type: SystemString
Id of the Page
versionId
Type: SystemInt32
Id of the Page's specific version
diffPage
Type: SystemBoolean
Whether or not to return content with diffing html markup
revert
Type: SystemBoolean

[Missing <param name="revert"/> documentation for "M:IngeniuxCMService.PageCommandsServices.GetPageVersion(System.String,System.Int32,System.Boolean,System.Boolean)"]

Return Value

Type: XHRServiceResponseGenericPageData

Content of Page's specific version, with or without diffing html markup.

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "documentElement": {
            "attributes": [{
                "Key": "ID",
                "Value": "PageVersion_x70_<span style=\"background-color:#CCFFFF; text-decoration: underline\">CheckedOu<\/span><span style=\"background-color:#FFCCCC;text-decoration: line-through;\">6<\/span> <span style=\"background-color:#CCFFFF; text-decoration: underline\">t<\/span>"
            }, {
                "Key": "Name",
                "Value": "ContactUs"
            }],
            "childName": null,
            "childParentId": null,
            "childSchemaId": null,
            "childSchemaName": null,
            "deletedAttributes": null,
            "nodeName": "ContactInformation",
            "nodePosition": 0,
            "pageBuilderTemplateName": null,
            "childElements": [{
                "attributes": [{
                    "Key": "label",
                    "Value": "Title"
                }, {
                    "Key": "readonly",
                    "Value": "false"
                }, {
                    "Key": "hidden",
                    "Value": "false"
                }, {
                    "Key": "required",
                    "Value": "false"
                }, {
                    "Key": "type",
                    "Value": "string"
                }],
                "childName": null,
                "childParentId": null,
                "childSchemaId": null,
                "childSchemaName": null,
                "deletedAttributes": null,
                "nodeName": "Title",
                "nodePosition": 0,
                "pageBuilderTemplateName": "",
                "childElements": [],
                "disabled": false,
                "nodeValue": "Contact <span style=\"background-color:#CCFFFF; text-decoration: underline\">Ingeniux<\/span><span style=\"background-color:#FFCCCC;text-decoration: line-through;\">Us<\/span>",
                "uniqueId": "2abedeae62ae45621decdc263c9eadd8"
            }, {
                "attributes": [{
                    "Key": "label",
                    "Value": "Company"
                }, {
                    "Key": "readonly",
                    "Value": "false"
                }, {
                    "Key": "hidden",
                    "Value": "false"
                }, {
                    "Key": "required",
                    "Value": "false"
                }, {
                    "Key": "type",
                    "Value": "string"
                }],
                "childName": null,
                "childParentId": null,
                "childSchemaId": null,
                "childSchemaName": null,
                "deletedAttributes": null,
                "nodeName": "Company",
                "nodePosition": 1,
                "pageBuilderTemplateName": "",
                "childElements": [],
                "disabled": false,
                "nodeValue": "INGENIUX | Web Experience Management",
                "uniqueId": "68e792a32ee940e39174f57f455fe839"
            }, {
                "attributes": [{
                    "Key": "label",
                    "Value": "Address"
                }, {
                    "Key": "readonly",
                    "Value": "false"
                }, {
                    "Key": "hidden",
                    "Value": "false"
                }, {
                    "Key": "required",
                    "Value": "false"
                }, {
                    "Key": "type",
                    "Value": "string"
                }],
                "childName": null,
                "childParentId": null,
                "childSchemaId": null,
                "childSchemaName": null,
                "deletedAttributes": null,
                "nodeName": "Address",
                "nodePosition": 2,
                "pageBuilderTemplateName": "",
                "childElements": [],
                "disabled": false,
                "nodeValue": "1601 2nd Avenue, 5th Floor | Seattle, WA 98101",
                "uniqueId": "6c13023cdb8db1f26f5308f9f6dfbe59"
            }, {
                "attributes": [{
                    "Key": "label",
                    "Value": "Email"
                }, {
                    "Key": "readonly",
                    "Value": "false"
                }, {
                    "Key": "hidden",
                    "Value": "false"
                }, {
                    "Key": "required",
                    "Value": "false"
                }, {
                    "Key": "type",
                    "Value": "string"
                }],
                "childName": null,
                "childParentId": null,
                "childSchemaId": null,
                "childSchemaName": null,
                "deletedAttributes": null,
                "nodeName": "Email",
                "nodePosition": 3,
                "pageBuilderTemplateName": "",
                "childElements": [],
                "disabled": false,
                "nodeValue": "info@ingeniux.com",
                "uniqueId": "931009fc717f4d211254f888a7e85a47"
            }, {
                "attributes": [{
                    "Key": "label",
                    "Value": "Phone"
                }, {
                    "Key": "readonly",
                    "Value": "false"
                }, {
                    "Key": "hidden",
                    "Value": "false"
                }, {
                    "Key": "required",
                    "Value": "false"
                }, {
                    "Key": "type",
                    "Value": "string"
                }],
                "childName": null,
                "childParentId": null,
                "childSchemaId": null,
                "childSchemaName": null,
                "deletedAttributes": null,
                "nodeName": "Phone",
                "nodePosition": 4,
                "pageBuilderTemplateName": "",
                "childElements": [],
                "disabled": false,
                "nodeValue": "1 (206) 788-4300",
                "uniqueId": "af03d546e7604118269dbd00afbe6a2f"
            }, {
                "attributes": [{
                    "Key": "label",
                    "Value": "Web"
                }, {
                    "Key": "readonly",
                    "Value": "false"
                }, {
                    "Key": "hidden",
                    "Value": "false"
                }, {
                    "Key": "required",
                    "Value": "false"
                }, {
                    "Key": "type",
                    "Value": "string"
                }],
                "childName": null,
                "childParentId": null,
                "childSchemaId": null,
                "childSchemaName": null,
                "deletedAttributes": null,
                "nodeName": "Web",
                "nodePosition": 5,
                "pageBuilderTemplateName": "",
                "childElements": [],
                "disabled": false,
                "nodeValue": "http:\/\/www.ingeniux.com",
                "uniqueId": "5fa33a76f7481f537777648303783e90"
            }],
            "disabled": false,
            "nodeValue": null,
            "uniqueId": null
        },
        "errors": null,
        "metadata": {
            "properties": {
                "name": null,
                "allowedCategoryRoots": null,
                "ancestors": null,
                "assignedGroup": null,
                "assignedUser": null,
                "canClaimPage": false,
                "canTranslate": false,
                "checkedOut": false,
                "error": null,
                "icon": 0,
                "isAssignedToOtherUser": false,
                "isEditable": false,
                "isInWorkflow": false,
                "justRecycled": false,
                "languageRootId": null,
                "lingualMaps": null,
                "locale": null,
                "localeInherited": false,
                "markedForPublish": false,
                "markedForPublishAny": false,
                "markedForPublishPropagated": false,
                "nextPageId": null,
                "nextPageIndex": 0,
                "noDnd": false,
                "numChildPages": 0,
                "pageId": null,
                "parentId": null,
                "pendingMasterVersion": 0,
                "referenceProps": null,
                "remoteServer": null,
                "schemaFriendlyName": null,
                "schemaName": null,
                "schemaOnLatestVersion": false,
                "securityLevel": 0,
                "userCanCopyPage": false,
                "workflow": null
            },
            "tabData": null
        },
        "presentations": null,
        "systemSettings": {
            "fileLocations": null
        }
    }
}
See Also

Reference