{% extends "admin/base_site.html" %} {% load i18n %} {% block bodyclass %}grp-doc{% endblock %} {% block content-class %}{% endblock %} {% block title %}Grappelli Documentation » Context Navigation{% endblock %} {% block extrahead %} {% endblock %} {% block breadcrumbs %}
As part of the header, #grp-context-navigation wraps elements which provide contextual (page-specific) navigation and interaction possibilities.
The breadcrumbs are defined in a block {% templatetag openblock %} block breadcrumbs {% templatetag closeblock %}. They are always written as a plain ul with li containing links and the last li showing the title of the page you are currently dealing with.
{% filter force_escape %}
{% templatetag openblock %} block breadcrumbs {% templatetag closeblock %}
- {% trans "Home" %}
- Link
- That's where you are
{% templatetag openblock %} endblock {% templatetag closeblock %}
{% endfilter %}
The page-tools are a container for contextual interactions. They are currently used with the change-form, defining options for expanding and collapsing all items on a page. They've been introduced as a placeholder for any sort of contextual options which might be needed with future versions of Grappelli.
Page-Tools are defined in a block {% templatetag openblock %} block page-tools {% templatetag closeblock %}. They are always written as a plain ul with li containing links for the interactions. Those might be plain text or icons. Using the latter requires to add .grp-tools to the link. Make sure to use a custom icon fitting the size then.
{% filter force_escape %}
{% templatetag openblock %} block page-tools {% templatetag closeblock %}
{% templatetag openblock %} endblock {% templatetag closeblock %}
{% endfilter %}