{% 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 %} {% endblock %} {% block content %}

Date-Hierarchy

Basics

The date-hierarchy is meant to appear in a .grp-row within a .grp-module.

Basically 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 (if it's clickable). If there's a back-link use an a.grp-date-hierarchy-back.

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 %}

Full Code of a Date-Hierarchy

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).

{% endblock %}