N
N
Nikolai2018-02-05 12:03:25
1C-Bitrix
Nikolai, 2018-02-05 12:03:25

How to get an array with the names of categories 1c bitrix?

Hello! Please help...
The menu should contain 3 levels and be displayed on all pages in the same way. Everything worked fine on the main page (level 1 - level 2 - level 3), but when you go to any of the categories, only the categories of the current level and subcategories are displayed, i.e. level 2 and level 3, and level 1 disappears. I started digging and understanding, I realized that I needed to work with the .top.menu.php file. There is an array that displays the categories of the current level and sublevels. How can I make it show all categories, no matter what category I'm in?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-02-08
Madzhugin @Suntechnic

You probably have ROOT_MENU_TYPE == top and CHILD_MENU_TYPE == top in setting the menu component
Do this - let the .top.menu.php file be only at the top level.
Rename the .top.menu.php files in the section directories to .subtop.menu.php, and change the CHILD_MENU_TYPE parameter to subtop
Well, read how the menu component works and the ROOT_MENU_TYPE and CHILD_MENU_TYPE parameters

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question