Get the list of page blocks landing.block.getlist
We are still updating this page
Some data may be missing — we will complete it shortly.
Scope:
landingWho can execute the method: any user
The method landing.block.getlist retrieves a list of page blocks. It returns an array of blocks or an error.
Parameters
|
Method |
Description |
Version |
|
lid |
Identifier of the page, or an array of identifiers. |
|
|
params |
Parameters:
|
Examples
PHP
BX24.js
try {
$response = $b24Service
->core
->call(
'landing.block.getlist',
[
'lid' => 313,
'params' => [
'edit_mode' => 0
]
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
// Your required data processing logic
processData($result);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error getting block list: ' . $e->getMessage();
}
BX24.callMethod(
'landing.block.getlist',
{
lid: 313,
params: {
edit_mode: 0
}
},
function(result)
{
if(result.error())
{
console.error(result.error());
}
else
{
console.info(result.data());
}
}
);
How to Use Examples in Documentation
Copied
Previous
Next