{% extends "admin/base_site.html" %} {% load i18n %} {% block bodyclass %}grp-doc{% endblock %} {% block content-class %}{% endblock %} {% block title %}Grappelli Documentation » Pagination{% endblock %} {% block extrahead %} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

Pagination

Basics

The pagination is meant to appear in a .grp-row within a .grp-module. Basically, it is a nav.grp-pagination containing a hidden header (to appear in the document outlines) and ul with li representing the results and pages. Everything within a li has to be either a span or an a.

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

Full Code of a Pagination

Take a look at Grappellis pagination.html to get the full code of a pagination (e.g. like it is used in a change-list).

{% endblock %}