B
B
Berzeg2018-02-18 18:49:04
1C-Bitrix
Berzeg, 2018-02-18 18:49:04

How to hide the display of empty sections in the Bitrix menu?

I display the menu like this

<?$APPLICATION->IncludeComponent(
  "bitrix:menu",
  "vertical_multilevel",
  Array(
    "ALLOW_MULTI_SELECT" => "N",
    "CHILD_MENU_TYPE" => "dropdown",
    "COMPONENT_TEMPLATE" => "vertical_multilevel",
    "COMPOSITE_FRAME_MODE" => "A",
    "COMPOSITE_FRAME_TYPE" => "AUTO",
    "DELAY" => "N",
    "MAX_LEVEL" => "3",
    "MENU_CACHE_GET_VARS" => array(),
    "MENU_CACHE_TIME" => "3600",
    "MENU_CACHE_TYPE" => "N",
    "MENU_CACHE_USE_GROUPS" => "Y",
    "ROOT_MENU_TYPE" => "multilevel_menu",
    "USE_EXT" => "Y"
  )
);?>

There are sections without products, how to make empty sections not displayed in the menu?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-02-18
@gangstarcj

Sections are taken from the ext menu, edit the selection there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question