Set a special page for the site landing.syspage.set
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.syspage.set sets a special page for the site. If the lid parameter is not provided, the corresponding page type, not the page itself, will be removed. The method does not return a result.
Examples
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'landing.syspage.set',
{
id: 1390,// Site ID
type: 'personal',// Page type
lid: 8593// Page ID that will be considered of this type within the site
}
);
const result = response.getData().result;
console.info(result);
}
catch(error)
{
console.error(error);
}
try {
$response = $b24Service
->core
->call(
'landing.syspage.set',
[
'id' => 1390, // Site ID
'type' => 'personal', // Page type
'lid' => 8593 // Page ID that will be considered of this type within the site
]
);
$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 setting system page: ' . $e->getMessage();
}
BX24.callMethod(
'landing.syspage.set',
{
id: 1390,// Site ID
type: 'personal',// Page type
lid: 8593// Page ID that will be considered of this type within the site
},
function(result)
{
if(result.error())
{
console.error(result.error());
}
else
{
console.info(result.data());
}
}
)
How to Use Examples in Documentation
Copied
Previous