Documentation

getPreview

Attention! We strongly recommend first to learn more about Sites module REST documentation to understand how the module functions (with REST available in Bitrix24 Self-hosted editions). View this documentation as useful source when working with Bitrix24 Self-hosted editions and when you want to learn more about API.

Site::getPreview(
   $siteId
);

Method returns site preview image URL (index page preview). Site must be available for reading.

Parameters

Parameters Description Available from version
$siteId Site ID.

Example

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   echo \Bitrix\Landing\Site::getPreview(2070);
}


© «Bitrix24», 2001-2024