Settings
Placement location for LANDING_SETTINGS allows to add a new option to settings menu (Landing pages / Site) in the landing page edit mode.
Parameters
The following parameters are available for placement location:
Parameter | Description | Available from version |
---|---|---|
SITE_ID | Site ID. | |
LID | Landing page ID. |
Parameters can be retrieved from PLACEMENT_OPTIONS:
$placement = isset($_REQUEST['PLACEMENT_OPTIONS']) ? json_decode($_REQUEST['PLACEMENT_OPTIONS'], true) : [];
Example
BX24.callMethod( 'landing.repo.bind', { fields: { PLACEMENT: 'LANDING_SETTINGS', PLACEMENT_HANDLER: 'https://cpe/rest/settings.php', TITLE: 'My settings' } }, function(result) { if(result.error()) console.error(result.error()); else console.info(result.data()); } );
© «Bitrix24», 2001-2024