Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions content/applications/websites/website/structure/header_footer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,15 @@ section of the :guilabel:`Customize` tab in the website editor:
- Hide or show the footer by toggling the :guilabel:`Page visibility` switch.

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

Hide a dynamic menu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I think this would fit better under Header content, as an h3 (as the last h3 in that section)
  • and I would be more precise here to make sure we're not misleading
Suggested change
Hide a dynamic menu
Hide a dynamic menu item for non-logged in users

(menu item because we use menu in this doc to refer to the whole navbar and non-logged in because otherwise you can hide any menu item using the delete buton in the menu editor)

===================

To hide a dynamic menu (events, eLearning, appointments) for non-logged users, enable debug mode, go
to :menuselection:`Configuration --> Menus`, and select the menu you want to hide. On the
:guilabel:`Visible Groups` section, under :guilabel:`Group Name` add User types / Portal.
Comment on lines +174 to +176
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Let's add the ref for the developer mode
  • I think we should briefly explain what we mean by dynamic menu like we did for dynamic pages on the Pages doc page so we don't have to name all menu items/apps (since we would need to add blog, forum, etc.)
  • I think we should use a numbered list here since there are 3+ steps and it would make it easier to follow.
  • Don't forget to start with the app name in menuselection 😉
  • I think some (small) steps are missing (see my suggestion below, towards the end).
Suggested change
To hide a dynamic menu (events, eLearning, appointments) for non-logged users, enable debug mode, go
to :menuselection:`Configuration --> Menus`, and select the menu you want to hide. On the
:guilabel:`Visible Groups` section, under :guilabel:`Group Name` add User types / Portal.
To hide a dynamic menu item (i.e., a menu item generated automatically by Odoo, for example, when you install an app or module, such as `Events`, `Courses`, etc.) for non-logged in users, follow these steps:
#. :ref:`Enable developer mode <developer-mode>`.
#. Go to :menuselection:`Website --> Configuration --> Menus`.
#. Expand the list of menus for the relevant website if needed, then click the menu item you wish to hide.
#. In the :guilabel:`Visible Groups` section, click :guilabel:`Add a line` under :guilabel:`Group Name`.
#. Search for the group :guilabel:`User types / Portal`, select it, then click :guilabel:`Select`.
#. Save.


.. tip::
To hide the /shop page of your eCommerce for non-logged users, go to
:menuselection:`Configuration --> Settings`, in the :guilabel:`Privacy` section, go to
:guilabel:`Ecommerce Access` and toggle on :icon:`fa-toggle-on` :guilabel:`Logged in users`.
Comment on lines +178 to +181
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Larissa is currently reviewing the Customer accounts doc page in the ecommerce section where she will document this. So I suggest rephrasing this slightly so we don't go into much detail and instead refer to that Customer accounts doc page (we'll change that doc link to a ref once Larissa has pushed her PR @lman-odoo ).

Suggested change
.. tip::
To hide the /shop page of your eCommerce for non-logged users, go to
:menuselection:`Configuration --> Settings`, in the :guilabel:`Privacy` section, go to
:guilabel:`Ecommerce Access` and toggle on :icon:`fa-toggle-on` :guilabel:`Logged in users`.
.. tip::
To hide the `Shop` menu item, :doc:`restrict ecommerce access to logged-in users <../../ecommerce/customer_accounts>`.