Add new setting 'TEMPLATE_PAGINATION'

This change adds a new setting 'TEMPLATE_PAGINATION', which may be used when
you want a specific page to have a different pagination value than the default.

For example, you want an index page with 10 articles per page, but category
pages should have 3 articles per page.
This commit is contained in:
Chris Elston 2013-04-02 11:02:32 +01:00
commit 1d29c9d2f8
5 changed files with 76 additions and 2 deletions

View file

@ -480,6 +480,12 @@ Setting name (default value) What does it do?
`DEFAULT_PAGINATION` (``False``) The maximum number of articles to include on a
page, not including orphans. False to disable
pagination.
`TEMPLATE_PAGINATION` (``{}``) A dictionary used to set per-template pagination,
used when you wish different templates to have
a specific number of articles per page.
For example: ``{'index': 10}``
`PAGINATION_PATTERNS` A set of patterns that are used to determine advanced
pagination output.
================================================ =====================================================