Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question