V
V
Viktor Babiy2016-07-04 17:30:58
1C-Bitrix
Viktor Babiy, 2016-07-04 17:30:58

Bitrix. Partition directory component?

There is a section output component (in the form of a menu).
How to add the ability to display a picture and a description of a section in this component?

<div class="b-catalog-holder b-catalog-main-page">
<?$APPLICATION->IncludeComponent(
  "ma:shop.section.list",
  "catalog-top-menu",
  array(
    "IBLOCK_TYPE" => "novotarp_ru",
    "IBLOCK_ID" => "6",
    "SECTION_ID" => $_REQUEST["SECTION_ID"],
    "SECTION_CODE" => "",
    "COUNT_ELEMENTS" => "Y",
    "TOP_DEPTH" => "2",
    "SECTION_FIELDS" => array(
      0 => "ID",
      1 => "CODE",
      2 => "XML_ID",
      3 => "NAME",
      4 => "SORT",
      5 => "DESCRIPTION",
      6 => "PICTURE",
      7 => "DETAIL_PICTURE",
      8 => "IBLOCK_TYPE_ID",
      9 => "IBLOCK_ID",
      10 => "IBLOCK_CODE",
      11 => "IBLOCK_EXTERNAL_ID",
      12 => "DATE_CREATE",
      13 => "CREATED_BY",
      14 => "TIMESTAMP_X",
      15 => "MODIFIED_BY",
      16 => "",
    ),
    "SECTION_USER_FIELDS" => array(
      0 => "",
      1 => "",
    ),
    "SECTION_URL" => "#SITE_DIR#/shop/#SECTION_ID#/",
    "CACHE_TYPE" => "N",
    "CACHE_TIME" => "36000000",
    "CACHE_GROUPS" => "Y",
    "ADD_SECTIONS_CHAIN" => "Y",
    "ACTIVE_SUBSECTION" => "Y",
    "SEF_MODE" => "N",
    "SELF_FOLDER" => "",
    "SECTION" => "#SECTION_ID#/",
    "ELEMENT" => "#SECTION_ID#/#ELEMENT_ID#/"
  ),
  false
);

?>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dev400, 2016-07-04
@victorA

Look here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question