Documentation

landing.landing.getlist

landing.landing.getlist(params)

This method is used to get a list of landing pages.

Note: landing pages marked as deleted are not available in lists. To show them, specify the key DELETED with the value Y or N when filtering.

Parameters

Method Description Available from version
params Optional array, with optional keys: select, filter, order, group that contain values of the table with main fields for entity.
The followings flags: get_preview = 1 (return the page preview), check_area (return the IS_AREA flag - whether the page is an enabled area) can be passed additionally.

Example

BX24.callMethod(
	'landing.landing.getList',
	{
		params: {
			select: [
				'ID', 'TITLE'
			],
			filter: {
				TITLE: '%services%',
				SITE_ID: 205
			},
			order: {
				ID: 'DESC'
			}
		}
	},
	function(result)
	{
		if(result.error())
		{
			console.error(result.error());
		}
		else
		{
			console.info(result.data());
		}
	}
);


© «Bitrix24», 2001-2024
Up