Documentation

landing.site.getList

landing.site.getList(params)

The method gets list of sites.

Attention: pages marked as deleted are not included into lists. To make them visible, specify the key DELETED with value Y or N during filtration.

Parameters

Method Description Available from version
params Optional array, with optional keys: select, filter, order, group, which contain values of entity table main fields.

Example

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


© «Bitrix24», 2001-2024