V
V
Vaha Vaynahskiy2018-02-10 01:41:48
1C-Bitrix
Vaha Vaynahskiy, 2018-02-10 01:41:48

How to display subsections (sub-items) in the Bitrix menu?

Hello, the site has a main menu in the form of categories, only the gender is displayed. categories, how to display their subcategories in this menu?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gerasimov, 2018-02-10
@mrTeo

Depending on what parameters are specified when connecting the bitrix:menu component, it can be displayed differently.
It is usually derived from the .left.menu.php file, which is located in the directory of the corresponding menu item (on your site these are the sale, company, etc. folders).
The CHILD_MENU_TYPE parameter can change the file for connecting the submenu.
File structure:

<?
$aMenuLinks = Array(
    Array(
        "Каталог", 
        "/catalog/", 
        Array(), 
        Array(), 
        "" 
    ),
    Array(
        "О сайте", 
        "/about/", 
        Array(), 
        Array(), 
        "" 
    ),
    Array(
        "Контакты", 
        "/contacts/", 
        Array(), 
        Array(), 
        "" 
    ),
    Array(
        "Доставка", 
        "/delivery/", 
        Array(), 
        Array(), 
        "" 
    )
);
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question