Answer the question
In order to leave comments, you need to log in
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
);?>
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question