S
S
sacha14252020-08-10 20:41:02
1C-Bitrix
sacha1425, 2020-08-10 20:41:02

Hide subsections in Bitrix menu?

Hello everyone, I need help. How to hide subsections in the menu, but only one section, the rest should remain unchanged.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Bondarchuk, 2020-08-11
@scotch18

You can set display:none for subsections via css, but this is still a crutch)

Y
Yaroslav Alexandrov, 2020-08-11
@alexyarik

In the advanced mode, we edit the menu there, it becomes possible to add parameters
https://dev.1c-bitrix.ru/learning/course/index.php...
About the parameters
https://dev.1c-bitrix.ru/user_help/content/ fileman...
Add a parameter, for example display value none
In the menu template, hide the item by the condition
if ($PARAMS["display"]=="none")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question