Documentation

landing.landing.copy

landing.landing.copy (lid, toSiteId)

This method copies a specified landing page. Returns the new page ID.

Parameters

Parameters Description Available from version
lid Landing page ID.
toSiteId Optional parameter, site ID. If specified, copying will occur into the specified site.
toFolderId Optional parameter, contains a folder ID. When this parameter is set, a copy will be allocated to the specified folder (when folder exists and access is granted). Otherwise the coping is performed in the same folder as the landing page folder, or to the root directory - when the source is also located in the root. 18.7.500

Example

BX24.callMethod(
    'landing.landing.copy',
    {
        lid: 1688
    },
    function(result)
    {
        if(result.error())
        {
            console.error(result.error());
        }
        else
        {
            console.info(result.data());
        }
    }
);


© «Bitrix24», 2001-2023
Up