Documentation

getContentFromRepository

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 static function getContentFromRepository(
   $code, 
   $namespace = null
)

Method returns block content, stored in repository.

Parameters

Namespace symbolic code, optional for identify block location.
ParameterDescriptionVersion
codeBlock ID, without namespace
namespace

Examples

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   $content = \Bitrix\Landing\Block::getContentFromRepository(
      '16.1.google_map'
   );
}
 


© «Bitrix24», 2001-2024
Up