{% extends "admin/base_site.html" %} {% load i18n %} {% block bodyclass %}grp-doc{% endblock %} {% block content-class %}{% endblock %} {% block title %}Grappelli Documentation » Date-Hierarchy{% endblock %} {% block extrahead %} {% endblock %} {% block breadcrumbs %}
The date-hierarchy is meant to appear in a .grp-row within a .grp-module. It is a nav.grp-date-hierarchy containing a hidden header (to appear in the document outlines) and ul with li representing the dates. Everything within a li has to be either a span or an a. For a back-link, use a.grp-date-hierarchy-back.
Note: Make sure to wrap the pagination with spaceless-tags to avoid whitespaces.
{% filter force_escape %}
{% templatetag openblock %} spaceless {% templatetag closeblock %}
{% templatetag openblock %} endspaceless {% templatetag closeblock %}
{% endfilter %}
Take a look at Grappellis date_hierarchy.html to get the full code of a date-hierarchy (e.g. like it is used in a change-list).