Bitrix Site Manager

Component parameters file - .parameters.php

The file .parameters.php contains description of the component input parameters. The description of parameters is used when manipulating the component from within Bitrix Site Manager (e.g. in the visual editor), and in the site editing mode. The component itself does not use this file; it is not included when the component is activated (for example, when loading a page containing the component).

The contents of this file is used solely to create the parameters input form (e.g. in the visual editor).

The file .parameters.php must reside in the component's subfolder. The corresponding language message file is loaded automatically (it must reside in /lang/<language>/.parameters.php relative to the component folder).

A typical .parameters.php file has the following structure:


$dbIBlockType = CIBlockType::GetList(
   array("sort" => "asc"),
   array("ACTIVE" => "Y")
while ($arIBlockType = $dbIBlockType->Fetch())
   if ($arIBlockTypeLang = CIBlockType::GetByIDLang($arIBlockType["ID"], LANGUAGE_ID))
      $arIblockType[$arIBlockType["ID"]] = "[".$arIBlockType["ID"]."] ".$arIBlockTypeLang["NAME"];

$arComponentParameters = array(
   "GROUPS" => array(
      "SETTINGS" => array(
         "NAME" => GetMessage("SETTINGS_PHR")
      "PARAMS" => array(
         "NAME" => GetMessage("PARAMS_PHR")
   "PARAMETERS" => array(
      "IBLOCK_TYPE_ID" => array(
         "PARENT" => "SETTINGS",
         "NAME" => GetMessage("INFOBLOCK_TYPE_PHR"),
         "TYPE" => "LIST",
         "ADDITIONAL_VALUES" => "Y",
         "VALUES" => $arIblockType,
         "REFRESH" => "Y"
      "BASKET_PAGE_TEMPLATE" => array(
         "PARENT" => "PARAMS",
         "NAME" => GetMessage("BASKET_LINK_PHR"),
         "TYPE" => "STRING",
         "MULTIPLE" => "N",
         "DEFAULT" => "/personal/basket.php",
         "COLS" => 25
      "SET_TITLE" => array(),
      "CACHE_TIME" => array(),
      "VARIABLE_ALIASES" => array(
         "IBLOCK_ID" => array(
            "NAME" => GetMessage("CATALOG_ID_VARIABLE_PHR"),
         "SECTION_ID" => array(
            "NAME" => GetMessage("SECTION_ID_VARIABLE_PHR"),
      "SEF_MODE" => array(
         "list" => array(
            "NAME" => GetMessage("CATALOG_LIST_PATH_TEMPLATE_PHR"),
            "DEFAULT" => "index.php",
            "VARIABLES" => array()
         "section1" => array(
            "NAME" => GetMessage("SECTION_LIST_PATH_TEMPLATE_PHR"),
            "DEFAULT" => "#IBLOCK_ID#",
            "VARIABLES" => array("IBLOCK_ID")
         "section2" => array(
            "NAME" => GetMessage("SUB_SECTION_LIST_PATH_TEMPLATE_PHR"),
            "DEFAULT" => "#IBLOCK_ID#/#SECTION_ID#",
            "VARIABLES" => array("IBLOCK_ID", "SECTION_ID")

The file declares the array $arComponentDescription, which describes the component's input parameters. If required, additional data is fetched. For example, all the active information block types may be selected to create a list of information block types for the input parameter IBLOCK_TYPE_ID.

This array can have the following keys:

Special standard parameters does not require full description; you can only mention them. For example:

"SET_TITLE" => array(),
"CACHE_TIME" => array(),

The first parameter tells the component engine to set the page title, and the second one tells to display the caching time.

If the component supports human friendly URL's, or it can redefine HTTP request variables (parameters), the following two special parameters are to be specified: