X
X
XZdev2020-01-15 10:36:48
1C-Bitrix
XZdev, 2020-01-15 10:36:48

How to add the names of sections from the infoblock to the menu sub-item?

Hello colleagues!
There is a menu in which there is an item N. There is an infoblock X in which there are several sections. It is necessary to display the names of sections from X to the menu (sub-items near N). How to do it more competently?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2020-01-15
@RuComMarket

you create a menu file in the folder to which item N refers
in this file you create items with links to the necessary sections
if you need to automate the output of sections, before the array with menu items you get the sections using CIBlockSection::GetList and throw it into your array, which you sort through and then throw to the $aMenuLinks array, forming links and names of the
initial menu, use a template with subcategories, or create your own template

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question