Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menus do not include links from secondary menus that use the same template #1968

Open
petedermott opened this issue Aug 19, 2020 · 1 comment
Labels

Comments

@petedermott
Copy link
Contributor

Steps to reproduce the problem:

  1. Install Mezzanine as normal
  2. Add a menu to the PAGE_MENU_TEMPLATES using the same template as an existing menu for example:
PAGE_MENU_TEMPLATES = (
    (1, _("Top navigation bar"), "pages/menus/dropdown.html"),
    (2, _("Left-hand tree"), "pages/menus/tree.html"),
    (3, _("Footer"), "pages/menus/footer.html"),
    (4, _("Secondary navigation bar"), "pages/menus/dropdown.html"),
)
  1. Call your new menu in a template i.e. {% page_menu 4 "pages/menus/dropdown.html" %}
  2. Remove a page from the "Top navigation bar" via the admin and add it to the "Secondary navigation bar"

What I would expect to happen

The menu item is added only showing the page that is in the "Secondary navigation bar"

What actually happens

The menu item is missing. If you add the item back to the "Top navigation bar" it will reappear.

Why I think this happens

Because the template is the same - and it seems to be the only index used by the in_menu_template function called by the pages_tags then it will just use the validity of the first instance of the selected template.

@jerivas jerivas added the bug label Jan 5, 2022
@cyberds
Copy link

cyberds commented Aug 2, 2022

I want to check it out...Has it been fixed? cos this seems to be quite old

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants