landing.landing.addblock
Scope: landing Permissions to execute: for all
landing.landing.addblock(lid, fields)
This method adds new block to the landing page. Returns ID of the new block or an error.
Parameters
Method | Description | Available from version |
---|---|---|
lid | Landing page ID | |
fields | Array of block fields that have only three values at the moment:
|
Example
BX24.callMethod( 'landing.landing.addblock', { lid: 351, fields: { CODE: '15.social' } }, function(result) { if(result.error()) { console.error(result.error()); } else { console.info(result.data()); } } );
© «Bitrix24», 2001-2024