D
D
daylight62019-04-22 11:26:31
1C-Bitrix
daylight6, 2019-04-22 11:26:31

What component in Bitrix can display the names of sections and under them a list of all elements of the section?

Good afternoon.
Tell me, is it possible to use some component without customization to display the names of sections and under them the names of all elements belonging to a particular section, for example, as here: www.ego-estetic.ru/i-can/?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Alexandrov, 2019-04-24
@daylight6

You can extend the capabilities of the standard component and create your own simple directory. Copy the component to your namespace and change the logic.
1) CIBlockSection::GetList - pull out sections
2) form an array, build links section id - section element IDs
3) CIBlockElement::GetList - Pull out elements
4) Complete the formation of your $arResult array
5) In the component template, display data from the generated array like this as needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question