{% extends 'base.html' %} {% block title %} Subpage | {{ block.super }} {% endblock %} {% block body %}

This is a subpage

There are three identical pages that are nested inside their parent menu item:

submenu_items = [...]
Menu.add_item("user", MenuItem("Subpages",
                               reverse('accounts:subpage', kwargs={'i': 1}),
                               icon="menu-app",
                               children=submenu_items))

Note that the second navigation bar is only shown for the pages that have a submenu. You can check it in the template:

{% if has_submenu
    <!-- display submenu -->
{% endif %}

By default, the parent will not be marked active if their child active. The example site changes this behavior using a setting:

MENU_SELECT_PARENTS = True
{% endblock %}