A
A
Anna2020-07-07 19:21:29
1C-Bitrix
Anna, 2020-07-07 19:21:29

Output of the “Binding to elements” property in the order of filling in Bitrix. How to implement?

There was a problem with the following task. There is a template for a detailed news article, the "Binding to elements" property is set for the article in the infoblock. This property specifies other articles that will be displayed in a list under the text. The problem is that you need to display these articles in the order in which they are set in the admin panel when filling in the "Binding to elements" property, but the standard sorting options do not give this, and if sorting is completely disabled, then the articles are displayed by sections (first articles section 1, then the articles of section 2, etc.). How can this be implemented?

The filter is set by default

<?
   global  $filterNews;
   $filterNews = array("ID"=>$arResult['PROPERTIES']['ADD_NEWS']['VALUE']);

?>
<?$APPLICATION->IncludeComponent(
"bitrix:news.detail", 
array(
...
"FILTER_NAME" => "filterNews",
...
?>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2020-07-07
@gangstarcj

https://dev.1c-bitrix.ru/api_help/iblock/classes/c... This
gax5hyQ.png
is already standard. Try to apply

A
Anna, 2020-07-08
@Anna_Belikova01

Thank you very much!
The advice from here also helped me a lot. If suddenly someone needs it:
https://dev.1c-bitrix.ru/support/forum/forum6/topi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question