Documentation

landing.landing.moveblock

Scope: landing Permissions to execute: for all

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

This method moves block from one landing page to another. Returns True or an error.

Parameters

Method Description Available from version
lid Landing page ID, where the block must 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 supports only one key - AFTER_ID; specifies after which block, a new block is to be inserted.

Example

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


© «Bitrix24», 2001-2024