Remove embedding locations landing.repo.unbind
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 removal is performed by the module method landing.repo.unbind, which simply takes the embedding location code as an argument. All embedding locations with this code will be removed. If the application has registered multiple locations with different paths, a specific one can be removed by passing the embedding location address.
Examples
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'landing.repo.unbind',
{
code: 'LANDING_SETTINGS',
// handler: 'https://site.com/rt/placement.php?version=3'
}
);
const result = response.getData().result;
if (result.error())
{
console.error(result.error());
}
else
{
console.info(result);
}
}
catch(error)
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'landing.repo.unbind',
[
'code' => 'LANDING_SETTINGS',
// 'handler' => 'https://site.com/rt/placement.php?version=3'
]
);
$result = $response
->getResponseData()
->getResult();
if ($result->error()) {
error_log($result->error());
} else {
echo 'Success: ' . print_r($result->data(), true);
}
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error unbinding landing repository: ' . $e->getMessage();
}
BX24.callMethod(
'landing.repo.unbind',
{
code: 'LANDING_SETTINGS',
// handler: 'https://site.com/rt/placement.php?version=3'
},
function(result)
{
if(result.error())
console.error(result.error());
else
console.info(result.data());
}
);
How to Use Examples in Documentation
Copied
Previous