Documentation

getForSite

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::getForSite(
   $id
)

Method gets list of included areas for site. Returned array keys are included areas IDs and values - page IDs.

Parameters

Class Description Available from version
$id Site ID.

Example

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   \Bitrix\Landing\TemplateRef::getForSite(34);
}


© «Bitrix24», 2001-2024
Up