Click or drag to resize

PageCommandsServicesGetPageTranslationData Method


Retrieves a clone Page's page data together with the page data of its master Page.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<PageVersionData> GetPageTranslationData(
	string pageId
)

Parameters

pageId
Type: SystemString
Id of the clone Page

Return Value

Type: XHRServiceResponseGenericPageVersionData

The content of current clone Page and the content of its master Page

Examples
Sample JSON return
JavaScript
t = {
    "code": 0,
    "error": null,
    "message": {
        "current": {
            "documentElement": {
                "attributes": [{
                    "Key": "File",
                    "Value": ""
                }, {
                    "Key": "Thumbnail",
                    "Value": ""
                }, {
                    "Key": "Height",
                    "Value": ""
                }, {
                    "Key": "Width",
                    "Value": ""
                }, {
                    "Key": "AlternateText",
                    "Value": ""
                }, {
                    "Key": "Alignment",
                    "Value": ""
                }, {
                    "Key": "Border",
                    "Value": ""
                }, {
                    "Key": "HSpace",
                    "Value": ""
                }, {
                    "Key": "VSpace",
                    "Value": ""
                }, {
                    "Key": "UseMap",
                    "Value": ""
                }, {
                    "Key": "HREF",
                    "Value": ""
                }, {
                    "Key": "Target",
                    "Value": ""
                }, {
                    "Key": "ID",
                    "Value": "x118"
                }, {
                    "Key": "Name",
                    "Value": "zBrush"
                }],
                "childName": null,
                "childParentId": null,
                "childSchemaId": null,
                "childSchemaName": null,
                "deletedAttributes": null,
                "nodeName": "Image",
                "nodePosition": 0,
                "pageBuilderTemplateName": null,
                "childElements": [{
                    "attributes": [{
                        "Key": "label",
                        "Value": ""
                    }, {
                        "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": "Keywords",
                    "nodePosition": 0,
                    "pageBuilderTemplateName": "",
                    "childElements": [],
                    "disabled": false,
                    "nodeValue": null,
                    "uniqueId": "85428643-8460-4142-952d-efc514e3b4b7"
                }],
                "disabled": false,
                "nodeValue": null,
                "uniqueId": null
            },
            "errors": [],
            "metadata": {
                "properties": {
                    "name": "zBrush",
                    "allowedCategoryRoots": [],
                    "ancestors": ["x1", "x2", "x117", "x120"],
                    "assignedGroup": null,
                    "assignedUser": {
                        "name": "Turtle Master",
                        "email": "",
                        "userId": "INGENIUX\\awang"
                    },
                    "canClaimPage": false,
                    "canTranslate": true,
                    "checkedOut": true,
                    "error": null,
                    "icon": 3,
                    "isAssignedToOtherUser": false,
                    "isEditable": true,
                    "isInWorkflow": false,
                    "justRecycled": false,
                    "languageRootId": "x117",
                    "lingualMaps": {
                        "clones": [],
                        "master": {
                            "name": "zBrush",
                            "id": "x116",
                            "locale": "en-us"
                        }
                    },
                    "locale": "zh-cn",
                    "localeInherited": true,
                    "markedForPublish": false,
                    "markedForPublishAny": false,
                    "markedForPublishPropagated": false,
                    "nextPageId": null,
                    "nextPageIndex": 0,
                    "noDnd": false,
                    "numChildPages": 1,
                    "pageId": "x118",
                    "parentId": null,
                    "pendingMasterVersion": 0,
                    "referenceProps": {
                        "created": "20140123T23:49:20",
                        "createdBy": "INGENIUX\\awang",
                        "endDate": "00010101T00:00:00",
                        "lastModified": "20140127T21:53:02",
                        "lastModifiedBy": "User\/INGENIUX___awang",
                        "publishAs": "",
                        "startDate": "00010101T00:00:00"
                    },
                    "remoteServer": "",
                    "schemaFriendlyName": "Image File",
                    "schemaName": "Image",
                    "schemaOnLatestVersion": true,
                    "securityLevel": 2,
                    "userCanCopyPage": true,
                    "workflow": null
                },
                "tabData": {
                    "contentUnitsManagerTab": false,
                    "customTabs": [{
                        "Key": "CustomTabSettings\/1",
                        "Value": {
                            "name": "Analytics",
                            "id": "CustomTabSettings\/1",
                            "allowPinning": false,
                            "appendPageId": true,
                            "autoSelect": false,
                            "icon": "images\/icons\/default\/analytic16.png",
                            "isGlobal": true,
                            "resourceId": "analytics_title",
                            "show": true,
                            "url": "analytics\/default.aspx"
                        }
                    }],
                    "editTab": true,
                    "historyTab": true,
                    "overviewTab": false,
                    "pcrManagerTab": false,
                    "previewTab": false,
                    "publishManagerTab": false,
                    "publishMonitorTab": false,
                    "redirectsTab": false,
                    "reportsTab": false,
                    "schemaDesignerTab": false,
                    "siteDefinitionLocalizationTab": false,
                    "siteSearcherTab": false,
                    "systemOptionsTab": false,
                    "taxonomyAdminTab": false,
                    "taxonomyTab": true,
                    "translateTab": true,
                    "userManagerTab": false,
                    "workFlowAdministratorTab": false,
                    "xmlTab": true
                }
            },
            "presentations": null,
            "systemSettings": {
                "fileLocations": {
                    "imageUrlPrefix": "",
                    "mediaUrlPrefix": ""
                }
            }
        },
        "diff": {
            "documentElement": {
                "attributes": [{
                    "Key": "File",
                    "Value": "icons\/zBrush.gif"
                }, {
                    "Key": "Thumbnail",
                    "Value": ""
                }, {
                    "Key": "Height",
                    "Value": "50"
                }, {
                    "Key": "Width",
                    "Value": "237"
                }, {
                    "Key": "AlternateText",
                    "Value": "Paint Brush"
                }, {
                    "Key": "Alignment",
                    "Value": "left"
                }, {
                    "Key": "Border",
                    "Value": "0"
                }, {
                    "Key": "HSpace",
                    "Value": "0"
                }, {
                    "Key": "VSpace",
                    "Value": "0"
                }, {
                    "Key": "UseMap",
                    "Value": ""
                }, {
                    "Key": "HREF",
                    "Value": "http:\/\/www.ingeniux.com\/images\/zbrush.png"
                }, {
                    "Key": "Target",
                    "Value": ""
                }, {
                    "Key": "ID",
                    "Value": "x116"
                }, {
                    "Key": "Name",
                    "Value": "zBrush"
                }],
                "childName": null,
                "childParentId": null,
                "childSchemaId": null,
                "childSchemaName": null,
                "deletedAttributes": null,
                "nodeName": "Image",
                "nodePosition": 0,
                "pageBuilderTemplateName": null,
                "childElements": [{
                    "attributes": [{
                        "Key": "label",
                        "Value": ""
                    }, {
                        "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": "Keywords",
                    "nodePosition": 0,
                    "pageBuilderTemplateName": "",
                    "childElements": [],
                    "disabled": false,
                    "nodeValue": "Paint Brush",
                    "uniqueId": "85428643-8460-4142-952d-efc514e3b4b7"
                }],
                "disabled": false,
                "nodeValue": null,
                "uniqueId": null
            },
            "errors": [],
            "metadata": {
                "properties": {
                    "name": "zBrush",
                    "allowedCategoryRoots": [],
                    "ancestors": ["x1", "x2", "x112"],
                    "assignedGroup": null,
                    "assignedUser": null,
                    "canClaimPage": false,
                    "canTranslate": false,
                    "checkedOut": false,
                    "error": null,
                    "icon": 3,
                    "isAssignedToOtherUser": false,
                    "isEditable": false,
                    "isInWorkflow": false,
                    "justRecycled": false,
                    "languageRootId": "x112",
                    "lingualMaps": {
                        "clones": [{
                            "name": "zBrush",
                            "id": "x118",
                            "locale": "zh-cn"
                        }],
                        "master": null
                    },
                    "locale": "en-us",
                    "localeInherited": true,
                    "markedForPublish": false,
                    "markedForPublishAny": false,
                    "markedForPublishPropagated": false,
                    "nextPageId": null,
                    "nextPageIndex": 0,
                    "noDnd": false,
                    "numChildPages": 0,
                    "pageId": "x116",
                    "parentId": null,
                    "pendingMasterVersion": 0,
                    "referenceProps": {
                        "created": "20140122T00:37:10",
                        "createdBy": "INGENIUX\\awang",
                        "endDate": "00010101T00:00:00",
                        "lastModified": "20140127T21:24:37",
                        "lastModifiedBy": "User\/INGENIUX___awang",
                        "publishAs": "",
                        "startDate": "00010101T00:00:00"
                    },
                    "remoteServer": "",
                    "schemaFriendlyName": "Image File",
                    "schemaName": "Image",
                    "schemaOnLatestVersion": true,
                    "securityLevel": 2,
                    "userCanCopyPage": true,
                    "workflow": null
                },
                "tabData": {
                    "contentUnitsManagerTab": false,
                    "customTabs": [{
                        "Key": "CustomTabSettings\/1",
                        "Value": {
                            "name": "Analytics",
                            "id": "CustomTabSettings\/1",
                            "allowPinning": false,
                            "appendPageId": true,
                            "autoSelect": false,
                            "icon": "images\/icons\/default\/analytic16.png",
                            "isGlobal": true,
                            "resourceId": "analytics_title",
                            "show": true,
                            "url": "analytics\/default.aspx"
                        }
                    }],
                    "editTab": true,
                    "historyTab": true,
                    "overviewTab": false,
                    "pcrManagerTab": false,
                    "previewTab": false,
                    "publishManagerTab": false,
                    "publishMonitorTab": false,
                    "redirectsTab": false,
                    "reportsTab": false,
                    "schemaDesignerTab": false,
                    "siteDefinitionLocalizationTab": false,
                    "siteSearcherTab": false,
                    "systemOptionsTab": false,
                    "taxonomyAdminTab": false,
                    "taxonomyTab": true,
                    "translateTab": false,
                    "userManagerTab": false,
                    "workFlowAdministratorTab": false,
                    "xmlTab": true
                }
            },
            "presentations": null,
            "systemSettings": {
                "fileLocations": {
                    "imageUrlPrefix": "",
                    "mediaUrlPrefix": ""
                }
            }
        }
    }
}
Remarks
This operation is used by Ingeniux CMS site to construct Page translation editor.
See Also