S
S
Sp1keazyYT2019-04-15 22:10:49
1C-Bitrix
Sp1keazyYT, 2019-04-15 22:10:49

How to make a filter for the bitrix:catalog.section.list component so that certain sections with section_id are displayed?

Good evening! There is a catalog.section.list component. I call it like this:

<?$APPLICATION->IncludeComponent(
  "bitrix:catalog.section.list", 
  "sections_list", 
  array(
    "IBLOCK_TYPE" => "aspro_next_catalog",
    "IBLOCK_ID" => "17",
    "CACHE_TYPE" => "N",
    "CACHE_TIME" => "3600000",
    "CACHE_GROUPS" => "Y",
    "COUNT_ELEMENTS" => "Y",
    "TOP_DEPTH" => "2",
    "SECTION_URL" => "",
    "COMPONENT_TEMPLATE" => "sections_list",
    "SECTION_ID" => $_REQUEST["SECTION_ID"],
    "SECTION_CODE" => "",
    "SECTION_FIELDS" => array(
      0 => "",
      1 => "",
    ),
    "SECTION_USER_FIELDS" => array(
      0 => "UF_PHOTOINDEXPAGE",
      1 => "UF_PHOTOINDEXHOVER",
      2 => "",
    ),
    "ADD_SECTIONS_CHAIN" => "Y",
    "COMPOSITE_FRAME_MODE" => "A",
    "COMPOSITE_FRAME_TYPE" => "AUTO"
  ),
  $component
);?>

The task is this: to display not all sections, as it is done now, but to display certain sections by ID, something like a filter. How can I do that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Mifle, 2019-04-17
@OlegMifle

This component does not accept a filter. So you can either inherit it if the component allows it, or make changes to result_modifier.php .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question