|
| 1 | +===== |
| 2 | +Menus |
| 3 | +===== |
| 4 | + |
| 5 | +Menus are used to organize your website’s content and help visitors navigate through your web pages |
| 6 | +effectively. User-friendly and well-structured website menus also play a crucial role in improving |
| 7 | +:doc:`search engine rankings <seo>`. |
| 8 | + |
| 9 | +Odoo allows you to customize the content and appearance of your website's menu to your needs. |
| 10 | + |
| 11 | +Menu editor |
| 12 | +=========== |
| 13 | + |
| 14 | +The menu editor allows you to edit your website's menu and add :ref:`regular menu items |
| 15 | +<website/regular-menus>` and :ref:`mega menus <website/mega-menus>`. |
| 16 | + |
| 17 | +To edit your website's menu, go to :menuselection:`Website --> Site --> Menu Editor`. From there, |
| 18 | +you can: |
| 19 | + |
| 20 | +- **rename** a menu item or change its URL using the :guilabel:`Edit Menu Item` icon; |
| 21 | +- **delete** a menu item using the :guilabel:`Delete Menu Item` icon; |
| 22 | +- **move** a menu item by dragging and dropping it to the desired place in the menu; |
| 23 | +- **create a regular drop-down menu** by dragging and dropping the sub-menu items to the right, |
| 24 | + underneath their parent menu. |
| 25 | + |
| 26 | +.. image:: menus/menu-editor.png |
| 27 | + :alt: Menu editor with sub-menus |
| 28 | + |
| 29 | +.. note:: |
| 30 | + |
| 31 | + You can also access the menu editor by clicking :guilabel:`Edit`, selecting any menu item and |
| 32 | + clicking the :guilabel:`Edit Menu` icon. |
| 33 | + |
| 34 | + .. image:: menus/edit-menu-icon.png |
| 35 | + :alt: Access the Menu editor while in Edit mode. |
| 36 | + |
| 37 | +.. _website/regular-menus: |
| 38 | + |
| 39 | +Adding regular menu items |
| 40 | +------------------------- |
| 41 | + |
| 42 | +By default, pages are added to the menu as regular menu items when :doc:`they are created |
| 43 | +<../pages>`. You can also add regular menu items from the menu editor by clicking :guilabel:`Add |
| 44 | +Menu Item`. Enter the :guilabel:`Name` and URL of the related page in the pop-up window that appears |
| 45 | +on the screen and click :guilabel:`OK`. |
| 46 | + |
| 47 | +.. tip:: |
| 48 | + In the :guilabel:`URL or Email` field, you can type `/` to search for a page on your website or |
| 49 | + `#` to search for an existing custom anchor. |
| 50 | + |
| 51 | +.. _website/mega-menus: |
| 52 | + |
| 53 | +Adding mega menus |
| 54 | +----------------- |
| 55 | + |
| 56 | +Mega menus are similar to drop-down menus, but instead of a simple list of sub-menus, they display a |
| 57 | +panel divided into groups of navigation options. This makes them suitable for websites with large |
| 58 | +amounts of content, as they can help include all of your web pages in the menu while still making |
| 59 | +all menu items visible at once. Mega menus can also be structured more visually than regular |
| 60 | +drop-down menus, for example, through layout, typography, and icons. |
| 61 | + |
| 62 | +.. image:: menus/mega-menu.png |
| 63 | + :alt: Mega menu in the navigation bar. |
| 64 | + |
| 65 | +To create a mega menu, go to :menuselection:`Website --> Site --> Menu Editor` and click |
| 66 | +:guilabel:`Add Mega Menu Item`. Enter the :guilabel:`Name` of the mega menu in the pop-up, click |
| 67 | +:guilabel:`OK`, then :guilabel:`Save`. |
| 68 | + |
| 69 | +To adapt the options and layout of the mega menu, click it in the navigation bar, then click |
| 70 | +:guilabel:`Edit`. Mega menus are composed of building blocks, which means you can customize each |
| 71 | +component individually using inline formatting, as well as the options available in the |
| 72 | +:guilabel:`Customize` tab in the website builder. For example, you can: |
| 73 | + |
| 74 | +- edit the text directly in the building block; |
| 75 | +- edit a menu item's URL by selecting the menu item, then clicking the :guilabel:`Edit link` button |
| 76 | + in the small preview pop-up. Type `/` to search for a page on your website, or `#` to search for |
| 77 | + an existing custom anchor. |
| 78 | + |
| 79 | + .. image:: menus/mega-menu-option.png |
| 80 | + :alt: Edit a mega menu option. |
| 81 | + |
| 82 | +- move a menu item by dragging and dropping the related block to the desired position in the mega |
| 83 | + menu; |
| 84 | +- delete a menu item by deleting the related block. |
| 85 | + |
| 86 | +.. tip:: |
| 87 | + You can adapt the general layout of the mega menu by selecting the desired :guilabel:`Template` |
| 88 | + and :guilabel:`Size` in the :guilabel:`Mega menu` section in the :guilabel:`Customize` tab in the |
| 89 | + website builder. |
| 90 | + |
| 91 | +Header and navigation bar appearance |
| 92 | +==================================== |
| 93 | + |
| 94 | +To customize the appearance of your website's menu, click :guilabel:`Edit`, then select the |
| 95 | +navigation bar or any menu item. You can then adapt the fields in the :guilabel:`Header` and |
| 96 | +:guilabel:`Navbar` sections in the :guilabel:`Customize` tab in the website builder. |
0 commit comments