Documentation

landing.block.getlist

landing.block.getlist(lid, params)

This method gets list of landing page blocks. Returns an array of blocks or an error.

Parameters

Method Description Available from version
lid Landing page ID
params Parameters: edit_mode - Edit mode enabled (1) or disabled (0 - by default); different set of blocks will be returned. Please note, if you haven't yet published the landing page, and the 'o' mode is enabled - nothing will be returned.

Example

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


© «Bitrix24», 2001-2024