How to change the array $arResult['ITEMS'] component of an integrated catalog?

How to modify the array $arResult['ITEMS'] in file result_modifier.php?
How to add more and inactive members?
August 23rd 19 at 10:43
1 answer
August 23rd 19 at 10:45
About RM: dev.1c-bitrix.ru/learning/course/index.php?COURSE_...
Example: dev.1c-bitrix.ru/learning/course/index.php?COURSE_...

That is, you need to:
  1. copy the template you want
  2. create (if not), in your template result_modifier
  3. you need to add logic (to make a request with the inactive elements and append to the array)


PS could be in the same question complement)
I'm just so far away, apparently, look not able ) well, the file result_modifier.php I have. correctly understand that you now need to make a selection of items using the CIBlockElement::GetList? sorry for the stupidity, first time actually trying to change the logic - Connie commented on August 23rd 19 at 10:48
In General, Ilya wrote all true, but not in such detail, but to implement you need to have to understand the logic Bitrix components.

Comprehensive directory to get a list of elements is called the component catalog.section. Filtering only the active components is at the core of this component, so you need to copy it in a namespace and modify its inner logic to it filtering does not cut off inactive members, but in the template integrated component is already connected to the changed component.

For additional modification of already prepared items that are in $arResult['ITEMS'] is a file result_modifier.php.

>> you need to make a selection of items using the CIBlockElement::GetList

If you do an additional sample in the file result_modifier.php and attach it to the one that formed the component catalog.section, you will be faced with other problems: at least is an incorrect calculation pagination, if you use it, and also need to result_modifier.php to implement the re-sorting.

>> first time actually trying to change the logic

read the documentation, especially the part where painted with the logic component, which files where they are, then you will understand what and where to change.
dev.1c-bitrix.ru/learning/course/?COURSE_ID=43&CHA... - Rocio.Balistre commented on August 23rd 19 at 10:51
: Thank you very much for the detailed answer, I'll learn ) - Connie commented on August 23rd 19 at 10:54

Find more questions by tags 1C-Bitrix