Documentation

landing.landing.copyblock

Scope: landing Permissions to execute: for all

landing.landing.copyblock(lid, block, params)

This method copies block from one landing page to another. Returns new block ID.

Parameters

Method Description Available from version
lid Landing page ID, where the block shall be copied.
block Block ID for the block that can be located at a different landing page (this operation makes sense only in this case)
params array of parameters that presently only supports one key - AFTER_ID; specifies after which block, a new block is to be inserted.

Example

BX24.callMethod(
	'landing.landing.copyblock',
	{
		lid: 349,
		block: 6428
	},
	function(result)
	{
		if(result.error())
		{
			console.error(result.error());
		}
		else
		{
			console.info(result.data());
		}
	}
);


© «Bitrix24», 2001-2024
Up