{% 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 %}
The #grp-context-navigation carries elements which provide contextual (page-specific) navigation and interaction possibilities.
For now these are the breadcrumbs and the so called page-tools.
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 whereas the last li contains no link but just 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 represent some container for contextual interactions. Currently they are used with the change-form where they carry options for expanding and collapsing all collapsible items.
They've been introduced as a kind of placeholder for any sort of contextual options which might be needed or possible in the future of Grappelli. Feel free to use it for your own customized page-specific purposes if there are any.
They 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 ones 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 %}