![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
wagtail-paginated-subpages
Advanced tools
A simple Django Wagtail app to add paginated pages under a root page using a mixin /template tag approach.
Adds paginated urls under and page where the mixin is used::
/the-original-page/
/the-original-page/page/1/
/the-original-page/page/99/
Install "wagtail-paginated-subpages" using pip::
pip install wagtail-paginated-subpages
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, Page):
pass
Use the paginated content in a paginated page template::
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
By default page 1 is automatically redirected to the base page url (for SEO). This can be updated to redirect the base page to /page/1/ if preferred::
PAGINATION_REDIRECT_INDEX_TO_ROOT = True # redirects /page/1/ to page.url
PAGINATION_REDIRECT_INDEX_TO_ROOT = False # redirects page.url to /page/1/
Pages are paginated by 12::
PAGINATION_PAGE_SIZE_DEFAULT = 99 # Number of items per page
Page size options to show in the 'Show:' list::
PAGINATION_DEFAULT_PAGE_SIZES = [12, 24, 48, 96] # Options for page sizes
By default the mixin returns all child pages for the current page, however this query can be changed by defining a get_child_page_queryset::
class ContentPage(PaginatedMixin, BaseCMSPage):
def get_child_page_queryset(self):
return self.get_children().live().order_by('-first_published_at')
Pagination markup can be customised by creating a new template in::
templates/wagtail_paginated_subpages/pagination.html
By design the list of child pages has not been designed as a template tags as there are too many ways to style the lists of content for it to be worthwhile. These can be updated by simply updating the markup from step 3.
Canonical meta tags can be added to the page header using::
{% load wagtail_paginated_tags %}
{% render_pagination_meta page=page paginated_objects=paginated_objects %}
FAQs
A pagination plugin app for django wagtail CMS
We found that wagtail-paginated-subpages demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.