Documentation

update

Attention! We strongly recommend first to learn more about Sites module REST documentation to understand how the module functions (with REST available in Bitrix24 Self-hosted editions). View this documentation as useful source when working with Bitrix24 Self-hosted editions and find out more details about API and only REST is not enough.

public static function Landing::update(
   $id,
   $fields = array()
);

Updates a landing page.

Parameters

ParameterDescriptionVersion
idPage ID.
fields Array of page parameters.

Example

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   $res = \Bitrix\Landing\Landing::update(
      1,
      [
         'TITLE' => 'New page 2',
      ]
   );
   if ($res->isSuccess())
   {
      echo 'updated id: ' . $res->getId();
   }
   else
   {
      print_r($res->getErrors());
   }
}


© «Bitrix24», 2001-2024
Up