Documentation

landingIsArea

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 find out more details about API and only REST is not enough.

public function TemplateRef::landingIsArea(
   $id
)

Method for defining page as included area used somewhere. Returns true on success.

Parameters

Class Description Available from version
$id Page ID. Or an IDs array. In second case, the response contains array with keys equal to passed page IDs and with boolean values.

Example

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   $check = \Bitrix\Landing\TemplateRef::landingIsArea(12);
   if ($check)
   {
      echo 'Page used as included area';
   }
}


© «Bitrix24», 2001-2024