H
H
Hy_ok2017-05-18 06:17:42
1C-Bitrix
Hy_ok, 2017-05-18 06:17:42

How to determine in the bitrix:news.list component whether the news is marked as the main one or not?

in general, the essence of the issue is this, you need to display the main news with a separate design, that is, how to highlight it, there will be no problems with this, so how can you determine that it is the main one? it’s just that in the settings of the news itself, when it was created, it was set that it was the main one, but in the module settings in the parameters I can’t find a variable that would tell me that this is the main news, in Bitrix not long ago it’s interesting, anyone has come across such a problem, tell me please

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Pavlov, 2017-05-21
@hy_ok

Apparently, some property is responsible for separating the main news from all the rest. Look at the list of properties in the infoblock settings, and then print arResult and look for this property there by character code. Next, you just need to process the news output with the property set in the template.

A
Alexey Emelyanov, 2017-05-18
@babarun

What does it mean " news is marked as main " ? Does she have the corresponding saint?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question