A
A
alex4answ2019-01-08 21:41:22
1C-Bitrix
alex4answ, 2019-01-08 21:41:22

How to display section name in bitrix news?

Good afternoon.
Please tell me, is it possible somehow without crutches in the
news.php of the bitrix.news component
to display a list of sections with elements:
- section
- element
- element 2
- section 2
and so on

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Valens, 2019-01-09
@alex4answ

As a variant with a minimum of "crutches", put the bitrix:catalog.sections.top component in news.php instead of the bitrix:news.list component and adjust its template.

I
Ilya, 2019-01-08
@jasper-blondin

maybe without crutches

No, you have to work with your hands.
You can use the CIBlockSection::GetMixedList method. More details here: https://dev.1c-bitrix.ru/api_help/iblock/classes/c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question