I
I
Ilya17912019-03-14 11:32:34
1C-Bitrix
Ilya1791, 2019-03-14 11:32:34

How to put a subsection of the second level on the first level in a multilevel menu in Bitrix?

Good afternoon!
I noticed one feature of Bitrix: if in a multilevel menu at the top level you put a link to a section deeper than the first level, for example /section/subsection/, then Bitrix refuses to display section data such as a link, id or text, displaying only an empty layout. Moreover, if you try to display the original $arResult array, this item is there.
I often face the task of putting an item from level 2 and deeper into the top section of the menu.
How can I bypass this feature of Bitrix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kudis, 2019-03-14
@kudis

No problems at all!
Transfer the menu template to your own localand modify
It can be hacked into result_modifier by increasing the DEPTH_LEVEL value by 1 for the desired items and their sub-items

A
Alexey, 2019-03-15
@AlexeyCaTHaR

And if you try to expand the menu through ext ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question