Documentation

Additional Page fields

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.

The same fields of Page with Site have the priority over the Site fields.

Field Description
THEME_CODEColor palette. Color theme description
THEME_CODE_TYPO Font settings.
Preview in social networks
METAOG_TITLETitle. Tag og:title.
METAOG_DESCRIPTIONDescription, tag og:description.
METAOG_IMAGEImage, tag og:image.
Meta tags
METAMAIN_USESet meta tags: Y / N.
METAMAIN_TITLETitle, tag title.
METAMAIN_DESCRIPTIONDescription, tag description.
METAMAIN_KEYWORDSKeywords, tag keywords.
Background image
BACKGROUND_USEUse feature: Y / N
BACKGROUND_PICTUREImage path.
BACKGROUND_POSITIONPosition: center (extend), repeat (tile).
BACKGROUND_COLORBackground color.
Analytics
YACOUNTER_USEUse Yandex.Metrics: Y / N.
YACOUNTER_COUNTERYandex.Metrics counter code.
GACOUNTER_USEUse Google Analytics: Y / N.
GACOUNTER_COUNTERGoogle Analytics counter code.
GACOUNTER_SEND_CLICKSend data about clicks on buttons and links in Google Analytics.
GACOUNTER_SEND_SHOW Send data on viewed page blocks in Google Analytics.
GTM_USE Use Google Tag Manager.
GTM_COUNTERGoogle Tag Manager code.
User HTML
HEADBLOCK_USEEnable: Y / N.
HEADBLOCK_CODEBlock HEAD, arbitrary html.
User CSS
CSSBLOCK_USEEnable: Y / N.
CSSBLOCK_CODEArbitrary CSS code.
CSSBLOCK_FILELink to CSS file.
Page View
VIEW_USEEnable: Y / N.
VIEW_TYPEType of view: no (disable), ltr (padding or margin from the top or at sides), all (padding on all sides).
Other
METAROBOTS_INDEXIndex page in search engines: Y / N.

Examples

Getting list of fields:

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   $fields = \Bitrix\Landing\Landing::getAdditionalFields(1);
   foreach ($fields as $field)
   {
      echo 'Code: ' . $field->getCode();
      echo ' @ ';
      echo 'Value: ' . $field->getValue();
      echo "\n";
   }
}

Updating fields for site with ID = 1:

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   $res = \Bitrix\Landing\Landing::update(
      1,
      [
         'ADDITIONAL_FIELDS' => [
            'UP_SHOW' => 'Y'
         ]
      ]
   );
}


© «Bitrix24», 2001-2024
Up