S
S
SpeakeazyYT22018-05-21 15:38:48
1C-Bitrix
SpeakeazyYT2, 2018-05-21 15:38:48

How to display the news component twice on the same page using a filter (displaying elements from specific sections) ???

Hello. I wanted to call the same news component and the same infoblock in different places on the same page, while it was necessary to display different elements in different places, so I made a filter by sections, that is, one element in one section of the infoblock should be called in one place , other elements stored in another section of the same infoblock must be called in another place ON THE SAME PAGE!
I set 2 filters:
<?$GLOBALS['arrFilter']=array("SECTION_ID" => 195);?>
<?$GLOBALS['arrFilter2']=array("SECTION_ID" => 196);?>
Also, I repeat, I called 2 news components, with one infoblock ID, and set up my own filters for each component. Result: ONLY one news component with the arrFilter filter is called on the page, but the second 0 reaction component. How can this be and what are the solutions to this problem?
Page code: https://pastebin.com/Dnzg5tqv
Page itself: 149.154.68.190/company/rewards

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question