landing.landing.deleteblock
Scope: landing Permissions to execute: for all
landing.landing.deleteblock(lid, block)
The method completely deletеs block from a landing page. Returns true or an error. Use the method landing.landing.markdeletedblock to temporarily and fully hide a block.
Parameters
Method | Description | Available from version |
---|---|---|
lid | Landing page ID | |
block | Block ID |
Example
BX24.callMethod( 'landing.landing.deleteblock', { lid: 351, block: 6483 }, function(result) { if(result.error()) { console.error(result.error()); } else { console.info(result.data()); } } );
© «Bitrix24», 2001-2024