A pagination plugin app for django wagtail CMS
Project description
A simple Django Wagtail app to add paginated pages under a root page using a mixin /template tag approach.
Quick start
Add “wagtail_paginated_subpages” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'wagtail_paginated_subpages', ]
import the mixin and include it before the Page (or other) classes:
from wagtail_paginated_subpages.mixins.pagination import PaginatedMixin class ContentPage(PaginatedMixin, BaseCMSPage): pass
Use the paginated content in a paginated page template:
{% for page in paginated_objects %} <h2>{{ page.title }}</h2> {% endfor %} </ul>
Use the pagination template tag to add pagination:
{% load wagtail_paginated_tags %} {% render_pagination page=page paginated_objects=paginated_objects %}
Navigate to page with child pages and list of child pages should be present
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for wagtail-paginated-subpages-0.5.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6145ef0f945509f71846d80d0bd82f85729a5a0632c8335d4f270465619088d1 |
|
MD5 | 459bc704b9df34cc46c41c91776c87c9 |
|
BLAKE2b-256 | 0d4f2676b73e60cdf12665007a4c53abc59fc52aa512a1663153dbca80e67416 |
Close
Hashes for wagtail_paginated_subpages-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bf2727ea4accbe39400d2b85acd4594cc5e1db61951810c6b96b67eff69a425 |
|
MD5 | 7ea2a109d012cfd7b75f3e00fbab52f0 |
|
BLAKE2b-256 | d1cbfbc36236696300205e7930f13690bf6897bc2ed1401708581065e3501244 |