G
G
Grione2022-03-09 16:53:00
1C-Bitrix
Grione, 2022-03-09 16:53:00

How to create a static menu item in a Bitrix nested menu?

There is a directory in Bitrix with a menu of the Section menu type. It automatically nests menus hierarchically. I need to manually add a link to a static page in one of the nested items. How can I do this I can not understand?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Morozov, 2022-03-10
@Q_BASIC

you have a .<menu type>.menu_ext.php file in the root of your site.
It has a component call like this:

$aMenuLinksExt = $APPLICATION->IncludeComponent(
    "bitrix:menu.sections",...

After this code, you have the $aMenuLinksExt variable filled. You can modify it however you want.
Make var_dump of this variable, look at structure. Then add the necessary reference to the variable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question