Skip to content

Commit d8bbe98

Browse files
masp-odooauva-odoo
authored andcommitted
[IMP] website: hide a dynamic menu to headers and footers
task-5003509
1 parent bb4b5d7 commit d8bbe98

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
@@ -75,8 +75,8 @@ you can:
7575

7676
.. _website/header_footer/menu-items:
7777

78-
Adding menu items
79-
-----------------
78+
Add menu items
79+
--------------
8080

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

151151
To finalize changes, click on :guilabel:`Save`.
152152

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

0 commit comments

Comments
 (0)