Skip to content

v2.2.0

Compare
Choose a tag to compare
@ababic ababic released this 20 Feb 13:39
· 758 commits to master since this release

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 the template and sub_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 when Page.relative_url() returns None for some reason.
  • Moved some methods out of template_tags/menu_tags.py into a new utils.py file to make menu_tags.py easier to read / manage.

Upgrade considerations

N/A