Documentation

landing.site.fullExport

landing.site.fullExport(
   id,
   params
)

The method export site and all its pages into special array required for operation of the method landing.demos.register.

Parameters

Parameter Description Available from version
id Site ID.
params Optional array, its keys are described below.

Example

BX24.callMethod(
   'landing.site.fullExport',
   {
      id: 326,
      params: {
         edit_mode: 'Y',
         hooks_disable: ['B24BUTTON_CODE'],//code of additional fields that should not be exported
         code: 'myfirstsite',//site symbolic code 
         name: 'Car service site',// site (page) name
         description: 'Site for your car service company. All you need is under the hood.',//site description
         preview: 'http://site.com/preview.jpg',//main preview image for template list (280x115 is recommended)
         preview2x: 'http://site.com/preview.jpg',//enlarged preview image (560x230 is recommended)
         preview3x: 'http://site.com/preview.jpg',//retina-size of preview image (845x345 is recommended)

      }
   },
   function(result)
   {
      if(result.error())
      {
         console.error(result.error());
      }
      else
      {
         console.info(result.data());
      }
   }
);
© «Bitrix24», 2001-2023
Up