It is necessary to obtain a list of sections in which there will be active elements in a given annual range. I work with the component bitrix:catalog.section.list . The years come with the parameter json_decode(urldecode($_GET["PARAMS"]), true);

  • What do you mean by "active elements in a given annual range". Year of item creation date? Or is this some kind of property "Year" of the information block? - Nikolaj Sarry

1 answer 1

Using the CIBlockElement::GetList method, CIBlockElement::GetList get an array containing the SECTION_ID you need. Then you feed this array to the "SECTION_ID" parameter of the `catalog.section.list 'component.

An example of working with CIBlockElement::GetList can be found in the documentation . An approximate code for you can be outlined if you understand what the annual range of an element is, it is the creation date, the change date, the information block property.