A
A
Aricus2021-10-19 14:41:13
1C-Bitrix
Aricus, 2021-10-19 14:41:13

Why are menus empty inside complex components?

I am new to 1s-bitrix. In the site template, menus with their own templates are connected. For example:

<?$APPLICATION->IncludeComponent(
              "bitrix:menu", 
              "module_top", 
              array(
                "ROOT_MENU_TYPE" => "top",
                "MENU_CACHE_TYPE" => "N",
                "MENU_CACHE_TIME" => "3600000",
                "MENU_CACHE_USE_GROUPS" => "Y",
                "MENU_THEME" => "site",
                "CACHE_SELECTED_ITEMS" => "N",
                "MENU_CACHE_GET_VARS" => array(
                ),
                "MAX_LEVEL" => "2",
                "CHILD_MENU_TYPE" => "subtop",
                "USE_EXT" => "Y",
                "DELAY" => "N",
                "ALLOW_MULTI_SELECT" => "N",
                "COMPONENT_TEMPLATE" => "module_top"
              ),
              false
            );

On static pages, everything is fine, but in the complex component "Catalog" (except for the top page), the menus are empty, as if there is no menu item. The nesting level has nothing to do with it, since static pages at the same level display the menu correctly. How to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question