Documentation

landing.block.getbyid

landing.block.getbyid(block, params)

This method gets block by its ID. Returns block or an error.

Parameters

Method Description Available from version
block Block ID
params Parameters: edit_mode - Edit mode enabled (1) or disabled (0 - by default); different set of blocks will be returned.

Example

BX24.callMethod(
	'landing.block.getbyid',
	{
		block: 6102,
		params: {
			edit_mode: 0
		}
	},
	function(result)
	{
		if(result.error())
		{
			console.error(result.error());
		}
		else
		{
			console.info(result.data());
		}
	}
);


© «Bitrix24», 2001-2024