Get the manifest of landing.block.getmanifest
We are still updating this page
Some data may be missing here — we will complete it shortly.
Scope:
landingWho can execute the method: any user
The method landing.block.getmanifest retrieves the manifest of a specific block that is already placed on the page. It returns the block's manifest or an error.
Parameters
|
Method |
Description |
Available since |
|
lid |
Page identifier |
|
|
block |
Block identifier |
|
|
params |
Parameters: edit_mode - editing mode (1) or not (0 - default) |
Examples
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'landing.block.getmanifest',
{
lid: 313,
block: 6102,
params: {
edit_mode: 0
}
}
);
const result = response.getData().result;
console.info(result);
}
catch( error )
{
console.error(error);
}
try {
$response = $b24Service
->core
->call(
'landing.block.getmanifest',
[
'lid' => 313,
'block' => 6102,
'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 manifest: ' . $e->getMessage();
}
BX24.callMethod(
'landing.block.getmanifest',
{
lid: 313,
block: 6102,
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