========== Navigation ========== You can easily modify the navigation with the Website Builder to fit your needs. In this chapter, you will learn how to: - Delete and create menu items. - Create a dropdown menu. - Create a mega menu. Default ======= Odoo automatically generates some basic menu items depending on the apps you installed. For example, the Website app adds two items to the main menu. These items are linked to pages, which are also automatically created. Delete default menu items. .. code-block:: xml :caption: ``/website_airproof/data/menu.xml`` Menu item ========= **Declaration** .. code-block:: xml :caption: ``/website_airproof/data/menu.xml`` About us /about-us 1 10 .. list-table:: :header-rows: 1 :stub-columns: 1 :widths: 20 80 * - Field - Description * - name - Link text * - url - Value of the href attribute * - parent_id - The menu in which the item will be added. * - website_id - The website on which the item will be added. * - sequence - Defines the link's position in the top menu. New window ---------- Open the link's URL in a new tab. .. code-block:: xml External Links -------------- Add a link to an external website. .. code-block:: xml https://www.odoo.com Anchor ------ Link to a specific section of a page. .. code-block:: xml /about-us#our-team Dropdown menu ============= **Declaration** .. code-block:: xml :caption: ``/website_airproof/data/menu.xml`` Services 1 ... Add an item to a dropdown menu. .. code-block:: xml Item 1 /dropdown/item-1 1 ... .. list-table:: :header-rows: 1 :stub-columns: 1 :widths: 20 80 * - Field - Description * - parent_id - The dropdown in which the item will be added. Mega menu ========= A mega menu is a dropdown menu with additional possibilities and not just a list of links. In a mega menu, you can use any kind of content (text, images, icons, ...). **Declaration** .. code-block:: xml :caption: ``/website_airproof/data/menu.xml`` Mega Menu /mega-menu 1 .. ... .. list-table:: :header-rows: 1 :stub-columns: 1 :widths: 20 80 * - Field - Description * - is_mega_menu - Enable the mega menu feature. * - mega_menu_classes - Custom classes to be added to the main element * - mega_menu_content - The default content of the mega menu Custom template --------------- Create your own template and add it to the list. **Layout** .. code-block:: xml :caption: ``/website_airproof/views/website_templates.xml`` **Option** Use the following code to add an option for your new custom mega menu on the Website Builder. .. code-block:: xml :caption: ``/website_airproof/data/presets.xml``