Skip to content

Navbar and Footer snippets to not support multisite #202

@vsalvino

Description

@vsalvino

Describe the bug
All navbars and footers are rendered on the page, regardless of the site. We should be specifying the site from the request when querying navbars and footers.

@register.simple_tag
def get_navbars():
return Navbar.objects.all()
@register.simple_tag
def get_footers():
return Footer.objects.all()

To Reproduce
Steps to reproduce the behavior:

  1. Create multiple sites / root pages
  2. Create a different navbar or footer snippet in each site.
  3. When browsing each specific site, navbars/footers from both sites are rendered.

Expected behavior
Only navbars and footers for a specific site should render when browsing that site.

Additional context
See community issue #200

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions