Get a list of included areas for the site landing.template.getSiteRef
We are still updating this page
Some data may be missing here — we will fill it in shortly.
Scope:
landingWho can execute the method: any user
The method landing.template.getSiteRef retrieves a list of included areas for the site. The keys of the returned array are the identifiers of the included areas, and the values are the page identifiers.
Parameters
|
Parameter |
Description |
|
id |
Site identifier. |
Example
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'landing.template.getSiteRef',
{
id: 1
}
);
const result = response.getData().result;
console.info(result);
}
catch( error )
{
console.error(error);
}
try {
$response = $b24Service
->core
->call(
'landing.template.getSiteRef',
[
'id' => 1
]
);
$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 site reference: ' . $e->getMessage();
}
BX24.callMethod(
'landing.template.getSiteRef',
{
id: 1
},
function(result)
{
if(result.error())
{
console.error(result.error());
}
else
{
console.info(result.data());
}
}
);
How to Use Examples in Documentation
Copied