Documentation

landing.landing.move

Scope: landing Permissions to execute: for all

landing.landing.move (
    lid,
    toSiteId,
    toFolderId
)

Method moves page to another site and/or folder.

Parameters

Parameter Description Available from version
lid Page ID to be moved.
toSiteIdSite ID to move the page. Requires access permissions to write to this site.
toFolderIdSite folder ID to move the page. Folder must be located in the specified site. Skip the parameter to move to site root. (moving in current site - skip the parameter toSiteId as well).

Example

BX24.callMethod(
    'landing.landing.move',
    {
        lid: 11262,
        toSiteId: 1817,
        toFolderId: 737
    },
    function(result)
    {
        if(result.error())
        {
            console.error(result.error());
        }
        else
        {
            console.info(result.data());
        }
    }
);


© «Bitrix24», 2001-2024