Views: 3559 (Data available since 06.02.2017)
Last Modified: 10.10.2012
Menu managing is implemented in administrative section. You can proceed to menu creation by on of the following ways:
With use of the "Add menu" button located on the context panel of the File Manager:
This button allows to create menu for a site section which folder is opened in the File Manager at the present moment.
With use of the "Create Section Menu" button.
Note: As the result of this operation there will be created a file with name .<menu_type>.menu.php in the corresponding site section. In the File Manage the name of this file will be displayed as a link with the following name Menu type "<menu_type>".
To proceed to menu editing use one of the following ways:
Open for editing file with the necessary menu name;
Use the button "Modify menu items".
Note: Editing menu you implement modifications of the file .<menu_type>.menu.php (e.g., .top.menu.php). But you do not tackle directly with the file code. The file modification is implemented via the special system interface providing user with opportunity to edit menu items in the visual mode.
The Bitrix Site Manager supports two modes for menu editing: simple and advanced.
Editing menu in the simple mode allows:
to define menu type (e.g., left, top);
to assign the following menu parameters:
menu item name;
link for menu item;
menu item sorting index.
Editing menu in the advanced mode allows:
to choose another (different from the used by default) template for menu displaying (the “Menu template” field).
to assign additional menu parameters:
set of additional links that correspond to this menu item. For example, active menu item News can match two pages: Newsfeed and News Details;
display conditions. For example, you can restrict shows of this item to users with certain permissions only;
additional parameters which can be processed by the menu template and displayed as desired. For example, if a menu item is the section title, it can be highlighted by setting the parameter SEPARATOR to a value of Y. You can check this parameter in your template and highlight an item.