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: landing

Who 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
unknown

Page identifier

block
unknown

Block identifier

params
unknown

Parameters: edit_mode - editing mode (1) or not (0 - default)

Examples

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