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_CODE | Color palette. Color theme description | ||
THEME_CODE_TYPO | Font settings. | ||
Preview in social networks | |||
METAOG_TITLE | Title. Tag og:title. | ||
METAOG_DESCRIPTION | Description, tag og:description. | ||
METAOG_IMAGE | Image, tag og:image. | ||
Meta tags | |||
METAMAIN_USE | Set meta tags: Y / N. | ||
METAMAIN_TITLE | Title, tag title. | ||
METAMAIN_DESCRIPTION | Description, tag description. | ||
METAMAIN_KEYWORDS | Keywords, tag keywords. | ||
Background image | |||
BACKGROUND_USE | Use feature: Y / N | ||
BACKGROUND_PICTURE | Image path. | ||
BACKGROUND_POSITION | Position: center (extend), repeat (tile). | ||
BACKGROUND_COLOR | Background color. | ||
Analytics | |||
YACOUNTER_USE | Use Yandex.Metrics: Y / N. | ||
YACOUNTER_COUNTER | Yandex.Metrics counter code. | ||
GACOUNTER_USE | Use Google Analytics: Y / N. | ||
GACOUNTER_COUNTER | Google Analytics counter code. | ||
GACOUNTER_SEND_CLICK | Send 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_COUNTER | Google Tag Manager code. | ||
User HTML | |||
HEADBLOCK_USE | Enable: Y / N. | ||
HEADBLOCK_CODE | Block HEAD, arbitrary html. | ||
User CSS | |||
CSSBLOCK_USE | Enable: Y / N. | ||
CSSBLOCK_CODE | Arbitrary CSS code. | ||
CSSBLOCK_FILE | Link to CSS file. | ||
Page View | |||
VIEW_USE | Enable: Y / N. | ||
VIEW_TYPE | Type of view: no (disable), ltr (padding or margin from the top or at sides), all (padding on all sides). | ||
Other | |||
METAROBOTS_INDEX | Index 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