PageCommandsServicesAddCloneMap Method

Ingeniux CMS Web Services API

Adds a new Lingual Map between 2 pages.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.70
Syntax

public XHRServiceResponseGeneric<PageCommandReturnInformation<LingualMapInfo>> AddCloneMap(
	string pageId,
	string cloneId,
	string pubTarget
)

Parameters

pageId
Type: SystemString
Id of the Master Page for the new Lingual Map
cloneId
Type: SystemString
Id of the Clone Page ffor the new Lingual Map
pubTarget
Type: SystemString
Current Publishing Target Id

Return Value

Type: XHRServiceResponseGenericPageCommandReturnInformationLingualMapInfo

Information of the Page Command action and the updated properties on the Master Page. Also, returns the newly added Lingual Map

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "contentChanged": false,
        "pageAction": "addclonemap",
        "pageProperties": {
            "name": "zBrush",
            "allowedCategoryRoots": [],
            "ancestors": ["x1", "x2", "x112"],
            "assignedGroup": null,
            "assignedUser": {
                "name": "Turtle Master",
                "email": "",
                "userId": "INGENIUX\\awang"
            },
            "canClaimPage": false,
            "canTranslate": false,
            "checkedOut": true,
            "error": null,
            "icon": 3,
            "isAssignedToOtherUser": false,
            "isEditable": true,
            "isInWorkflow": false,
            "justRecycled": false,
            "languageRootId": "x112",
            "lingualMaps": {
                "clones": [{
                    "name": "zBrush",
                    "id": "x121",
                    "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": "x119",
            "parentId": null,
            "pendingMasterVersion": 0,
            "referenceProps": {
                "created": "20140123T23:49:33",
                "createdBy": "INGENIUX\\awang",
                "endDate": "00010101T00:00:00",
                "lastModified": "20140123T23:49:33",
                "lastModifiedBy": "User\/INGENIUX___awang",
                "publishAs": "",
                "startDate": "00010101T00:00:00"
            },
            "remoteServer": "",
            "schemaFriendlyName": "Image File",
            "schemaName": "Image",
            "schemaOnLatestVersion": true,
            "securityLevel": 2,
            "userCanCopyPage": true,
            "workflow": null
        },
        "pages": null,
        "queryString": {
            "assignTargetId": null,
            "assignToGroup": null,
            "comment": null,
            "includeChildren": false,
            "newPageName": null,
            "pageAction": "addclonemap",
            "pageId": "x119",
            "pageIds": null,
            "transitionId": null
        },
        "returnMessage": {
            "name": "zBrush",
            "id": "x121",
            "locale": "zh-cn"
        }
    }
}
Remarks

When Master Page or Clone Page doesn't exist, or Master Page already has a Clone Map to the same Locale the new Clone Page has, returns error status.
See Also

Reference