v2.2.0
New / updated features
- Wagtailmenus now makes use of django's built-in
django.template.loader.select_template()
method
to provide a more intuitive way for developers to override templates for specific menus without having to explicitly specify alternative templates via settings or via thetemplate
andsub_menu_template
options for each menu tag. See the updated documentation for each tag for information about where wagtailmenus looks for templates. - Added the
WAGTAILMENUS_SITE_SPECIFIC_TEMPLATE_DIRS
setting to allow developers to choose to have wagtailmenus look in additional site-specific locations for templates to render menus. - Brazilian Portuguese language translations added by @MaxKurama.
Under the hood
- Added a try/except to
AbstractMenuItem.relative_url()
so that errors aren't thrown whenPage.relative_url()
returnsNone
for some reason. - Moved some methods out of
template_tags/menu_tags.py
into a newutils.py
file to makemenu_tags.py
easier to read / manage.
Upgrade considerations
N/A