Settings Menu LANDING_SETTINGS

We are still updating this page

Some data may be missing — we will complete it shortly.

The embedding location LANDING_SETTINGS allows you to add a new item to the settings menu (Pages / Site) in the page editing mode.

Parameters

The following parameters are available for this embedding location:

Parameter

Description

Available since

SITE_ID
unknown

site identifier.

LID
unknown

page identifier.

You can obtain the parameters from PLACEMENT_OPTIONS:

$placement = isset($_REQUEST['PLACEMENT_OPTIONS'])
            ? json_decode($_REQUEST['PLACEMENT_OPTIONS'], true)
            : [];
        

Examples

try
        {
        	const response = await $b24.callMethod(
        		'landing.repo.bind',
        		{
        			fields: {
        				PLACEMENT: 'LANDING_SETTINGS',
        				PLACEMENT_HANDLER: 'https://cpe/rest/settings.php',
        				TITLE: 'My settings'
        			}
        		}
        	);
        	
        	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.bind',
                    [
                        'fields' => [
                            'PLACEMENT'        => 'LANDING_SETTINGS',
                            'PLACEMENT_HANDLER' => 'https://cpe/rest/settings.php',
                            'TITLE'            => 'My settings',
                        ],
                    ]
                );
        
            $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 binding repository: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'landing.repo.bind',
            {
                fields: {
                    PLACEMENT: 'LANDING_SETTINGS',
                    PLACEMENT_HANDLER: 'https://cpe/rest/settings.php',
                    TITLE: 'My settings'
                }
            },
            function(result)
            {
                if(result.error())
                    console.error(result.error());
                else
                    console.info(result.data());
            }
        );
        

How to Use Examples in Documentation