Skip to content

Commit 004df7e

Browse files
committed
[IMP] website: hide a dynamic menu to headers and footers
task-5003509 closes #14918 X-original-commit: 5511b95 Signed-off-by: Audrey Vandromme (auva) <[email protected]> Signed-off-by: Marion Spindler (masp) <[email protected]>
1 parent ff37bab commit 004df7e

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

content/applications/websites/website/structure/header_footer.rst

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ you can:
7777

7878
.. _website/header_footer/menu-items:
7979

80-
Adding menu items
81-
-----------------
80+
Add menu items
81+
--------------
8282

8383
By default, pages are added to the menu as drop-down menu items when
8484
:doc:`they are created <../structure/pages>`. To add a new menu item, follow these steps:
@@ -152,6 +152,26 @@ editor, then, in the :guilabel:`Mega Menu` section:
152152

153153
To finalize changes, click on :guilabel:`Save`.
154154

155+
Hide a dynamic menu item for non-logged in users
156+
------------------------------------------------
157+
158+
To hide a dynamic menu item (i.e., a menu item generated automatically by Odoo, for example, when
159+
you install an app or module, such as `Events`, `Courses`, etc.) for non-logged in users, follow
160+
these steps:
161+
162+
#. :ref:`Enable developer mode <developer-mode>`.
163+
#. Go to :menuselection:`Website --> Configuration --> Menus`.
164+
#. Expand the list of menus for the relevant website if needed, then click the menu item you wish to
165+
hide.
166+
#. In the :guilabel:`Visible Groups` section, click :guilabel:`Add a line` under
167+
:guilabel:`Group Name`.
168+
#. Search for the group :guilabel:`User types / Portal`, select it, then click :guilabel:`Select`.
169+
#. Save.
170+
171+
.. tip::
172+
To hide the `Shop` menu item, :doc:`restrict ecommerce access to logged-in users
173+
<../../ecommerce/customer_accounts>`.
174+
155175
.. _website/header_footer/footer-design:
156176

157177
Footer design

0 commit comments

Comments
 (0)