Bitrix Site Manager

Editing menu

In this section

  • Context bar
  • Simple mode
  • Extended mode
  • Control buttons
  • This page is designed to create a new menu and edit the parameters of existing ones.

    Context bar

    Button Description
    Folder Shows a folder currently opened in the Site Explorer.
    Extended/ Simple mode Switches between editing modes.
    Edit as file Switches to the menu source code editing mode. The button is displayed when editing the existing menu only.
    Delete menu Deletes the menu being edited.

     Menu editing. Simple mode

    This table is the user interface used to create menu items in simple mode. To add new items, fill in the fields and click Save.

    Field Description
    Menu type The type of the menu to be created.
    Menu items
    Name The menu item name. It is the name to be displayed in the public section menu.
    Link The hyperlink to a page or section which will be opened when a visitor selects the item.
    Sorting Specifies the menu item sort weight. The less is the number, the higher is the item in menu.
    Delete Deletes the menu item. Check this field and click Save or Apply to delete the menu item.

    Menu editing. Extended mode

    In addition to the simple mode, the advanced mode allows changing the following parameters.

    Field Description
    Menu type The type of the menu to be created.
    Menu template If a menu requires a special template for display, you can specify the path to a template here.
    Menu items
    Name The menu item name. It is the name to be displayed in the public section menu.
    Link The hyperlink to a page or section which will be opened when a visitor selects the item.
    Sorting Specifies the menu item sort weight. The less is the number, the higher is the item in menu.
    Delete Deletes the menu item. Check this field and click Save or Apply to delete the menu item.
    Additional links to highlight Specifies the site pages which, when opened, will cause the menu item to be highlighted.

    For example, the menu item Siemens is linked to a page containing a list of phones (/catalog/phone/section.php). If you want the Siemens menu item to highlight when a user views the phone details, specify the detailed information page in this field (for example, /catalog/phone/element.php).

    All paths should be specified relative the site root. If all these pages are stored in one folder, specify the path to this folder relatively to the root (for example, /catalog/phone/element.php).
    Condition type Specifies the condition type. When the condition is met, the menu item is displayed to the visitors:
      • For file or folder: page or the current section subsection in which this menu item will be displayed;
      • For user group: user groups for which this menu item is displayed;
      • Time period: the date and time period within which the menu item is shown to site visitors;
      • URL parameters: the page URL parameter which, if present, will cause the menu item to be displayed;
      • PHP expression: an arbitrary PHP condition. The condition must be specified as it looks inside the if() operator. When a page is built, the condition is checked for being met. If the condition is met (i.e. it is true), the menu item will be displayed to visitors.

        For example, the $USER->IsAuthorized() condition allows to check if the current user is authorised.
    Condition Specifies the condition type. When the condition is met the created menu item is displayed.
    Parameters  Specifies any parameters used when a template-based menu item is being built. The parameters are stored in an associated array $PARAMS in form of pairs "name => value". When a template-based menu is being built, the template itself may contain the condition to check the parameter, for example:
    
    if ($PARAMS["MY_PARAM"]=="Y")
    or of a value is specified:
    
    <a href='".$link."'
     class='".$clrtext."'
     title='".$PARAMS["ALT"]."'>".$TEXT."". $clrimg ."</a>

    The product is shipped with the special option to highlight menu items. This option is used in conjunction with the Additional links to highlight field. To separate the first menu item, type SEPARATOR in the field Name and give it a value of Y.

    Control buttons

    Button Description
    Save Saves the current changes.
    Apply Saves the menu item parameters. Editing continues.
    Cancel Cancels current changes.