Documentation

landing.demos.getList

landing.demos.getList(
   params
)

The method gets list of available partner templates for current application.

Parameters

Parameter Description Available from version
params Optional array, with optional keys:
  • select
  • filter
  • order
  • group
which contain values of table with entity main fields. The table is provided below.

Entity fields

Field Description
ID Record ID.
XML_ID Record unique ID.
APP_CODE Current app ID.
ACTIVE Active status (Y / N).
TITLE Name.
DESCRIPTION Description.
PREVIEW_URL Preview URL.
TYPE Type of created site (STORE, PAGE).
TPL_TYPE Located in site/ store (S) or page (P) wizard.
MANIFEST Manifest.
SHOW_IN_LIST Show in template list.
PREVIEW / PREVIEW2X / PREVIEW3X Different-sized previews.
CREATED_BY_ID User ID who created record.
MODIFIED_BY_ID User ID who modified record.
DATE_CREATE Date when created.
DATE_MODIFY Date when modified.

Example

BX24.callMethod(
   'landing.demos.getList',
   {
      params: {
         select: [
            'ID', 'TITLE', 'MANIFEST'
         ],
         filter: {
            '>ID': '1'
         }
      }
   },
   function(result)
   {
      if(result.error())
         console.error(result.error());
      else
         console.info(result.data());
   }
);


© «Bitrix24», 2001-2024