From 79543031e6674876e3456eaf1796403335854cc9 Mon Sep 17 00:00:00 2001 From: Brandon Mercier <113701731+bram-odoo@users.noreply.github.com> Date: Tue, 24 Feb 2026 08:29:37 +0100 Subject: [PATCH] [IMP] howtos/website_theme: Adapts "Navigation" chapter closes odoo/documentation#16590 Signed-off-by: Brandon Mercier (bram) --- .../howtos/website_themes/navigation.rst | 152 +++++++++--------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/content/developer/howtos/website_themes/navigation.rst b/content/developer/howtos/website_themes/navigation.rst index a1693baa47..f1b2089056 100644 --- a/content/developer/howtos/website_themes/navigation.rst +++ b/content/developer/howtos/website_themes/navigation.rst @@ -24,13 +24,10 @@ Delete default menu items. .. code-block:: xml :caption: ``/website_airproof/data/menu.xml`` - - - - - + + .. _website_themes/navigation/menu: @@ -46,8 +43,8 @@ Menu item About us /about-us + ('url', '=', '#'), + ('website_id', '=', 1)]" /> 1 10 @@ -80,7 +77,7 @@ Open the link's URL in a new tab. .. code-block:: xml - + .. _website_themes/navigation/menu/external_links: @@ -123,8 +120,8 @@ Dropdown menu Services 1 + ('url', '=', '#'), + ('website_id', '=', 1)]" /> ... @@ -136,7 +133,7 @@ Add an item to a dropdown menu. Item 1 /dropdown/item-1 1 - + ... @@ -166,56 +163,56 @@ can re-use the template structure in the `mega_menu_content` field like any stat .. code-block:: xml :caption: ``/website_airproof/data/menu.xml`` - - Mega Menu - - 1 - .. - - ... - -
-
-
-
-

First Menu

- -
-
-

Second Menu

- -
-
-

Third Menu

- -
-
-

Last Menu

- -
-
-
-
-
-
+ + Mega Menu + + 1 + .. + + ... + +
+
+
+
+

First Menu

+ +
+
+

Second Menu

+ +
+
+

Third Menu

+ +
+
+

Last Menu

+ +
+
+
+
+
+
.. list-table:: :header-rows: 1 @@ -248,9 +245,9 @@ Create your own template and add it to the list. :caption: ``/website_airproof/views/website_templates.xml`` **Option** @@ -260,15 +257,18 @@ Use the following code to add an option for your new custom mega menu on the Web .. code-block:: xml :caption: ``/website_airproof/static/src/website_builder/mega_menu_option.xml`` - - + + + + - + title.translate="Airproof" + actionParam="{ + view: `website_airproof.s_mega_menu_airproof`, + templateClass: 's_mega_menu_airproof', + }"> + - - + + +