E
E
Evgeny Shvelev2019-04-08 22:30:58
CMS
Evgeny Shvelev, 2019-04-08 22:30:58

How to display a menu from a site section in Bitrix?

Guys, hello! How to remove links from the design section and so on on the main page? In general, make a menu from what is inside the section. I did not find any solution in the documentation and on the Internet. Explains only how to display a multi-level menu. Help whoever can
5caba08d89cb3652461319.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2019-04-26
@vaajnur

you get the necessary elements or subsections using GetList in ***.menu.php, form them as an array

Array(
    "Пункт 1", 
    "/punkt1/", 
    Array("/punkt1/"), 
    Array(
      "FROM_IBLOCK" => 1,
      "IS_PARENT" => 1,
      "DEPTH_LEVEL" => 1
    )
  ),

then these arrays (they are also menu items) are merged into a common menu array $aMenuLinks.
IS_PARENT , DEPTH_LEVEL give you the ability to manipulate nesting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question