Get a list of included areas for the page landing.template.getLandingRef

We are still updating this page

Some data may be missing here — we will fill it in shortly.

Scope: landing

Who can execute the method: any user

The method landing.template.getLandingRef retrieves a list of included areas for the page. The keys of the returned array are the identifiers of the included areas, and the values are the identifiers of the pages.

Parameters

Method

Description

ID
unknown

Page identifier

Examples

try
        {
        	const response = await $b24.callMethod(
        		'landing.template.getLandingRef',
        		{
        			id: 557
        		}
        	);
        	
        	const result = response.getData().result;
        	console.info(result);
        }
        catch(error)
        {
        	console.error(error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'landing.template.getLandingRef',
                    [
                        'id' => 557
                    ]
                );
        
            $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 landing reference: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'landing.template.getLandingRef',
            {
                id: 557
            },
            function(result)
            {
                if(result.error())
                {
                    console.error(result.error());
                }
                else
                {
                    console.info(result.data());
                }
            }
        );
        

How to Use Examples in Documentation