Skip to content

Commit d6e2f15

Browse files
toaa-odooauva-odoo
authored andcommitted
[ADD] website: menus page
taskid-3414667 closes #5737 X-original-commit: 0433155 Signed-off-by: Audrey Vandromme (auva) <[email protected]> Co-authored-by: Toaa <[email protected]> Co-authored-by: Auva <[email protected]>
1 parent d3625e5 commit d6e2f15

File tree

6 files changed

+98
-1
lines changed

6 files changed

+98
-1
lines changed

content/applications/websites/website/pages.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Duplicating pages
113113
To duplicate a page, access the page, then go to :menuselection:`Site --> Properties` and click
114114
:guilabel:`Duplicate Page`. Enter a :guilabel:`Page Name`, then click :guilabel:`OK`. By default,
115115
the new page is added after the duplicated page in the menu, but you can remove it from the menu or
116-
change its position using the menu editor.
116+
change its position using the :doc:`menu editor <pages/menus>`.
117117

118118
.. _website/delete-page:
119119

@@ -190,4 +190,5 @@ Toggle the :guilabel:`Activate` switch to deactivate the redirection.
190190
.. toctree::
191191
:titlesonly:
192192

193+
pages/menus
193194
pages/seo
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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.
4.67 KB
Loading
13 KB
Loading
23.1 KB
Loading
7.97 KB
Loading

0 commit comments

Comments
 (0)