C
C
Crumber2019-04-24 07:52:11
1C-Bitrix
Crumber, 2019-04-24 07:52:11

Is it possible to override catalog.section parameters in a complex component?

Briefly:
If a complex component still contains a catalog.section, is it possible to somehow redefine some of the parameters of this component so as not to use the TOP component?
It is necessary to clear the parameter ID of the request, add the name of the filter and the parameter

"SHOW_ALL_WO_SECTION" => "Y"

And before that, the filter array
GLOBAL $arrFilter; 
$arrFilter = array'PROPERTY_ID_свойства' => ID раздела, 
); 

_________________ The
essence of the task in detail:
Two infoblocks located in one type.
The elements of infoblock 1 have the property "binding to sections", to sections of infoblock 2.
To display infoblock 2, the complex component Catalog.
It is necessary to display the elements of infoblock 1 in the sections of infoblock 2, whose idea property has a link to the current section of infoblock 2.
Initially, inside the complex component in the catalog.section template, it called the TOP elements component, adding an array with the property of this "link to sections" before calling the component for element filtering.
Now I'm asking the question above.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Savrasov, 2019-04-24
@alcorn

Yes, you can, just redefine the variables in the
section.php or sections.php files of the complex component
The complex component passes them through the $arParams array

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question