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:
- Create multiple sites / root pages
- Create a different navbar or footer snippet in each site.
- 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
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.
coderedcms/coderedcms/templatetags/coderedcms_tags.py
Lines 81 to 87 in a3ab4de
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Only navbars and footers for a specific site should render when browsing that site.
Additional context
See community issue #200