Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Extras for wagtail

This app will add some necessities to wagtail:

Install

pip install wagtail-extras

Add wagtailextras to your installed apps:

INSTALLED_APPS = [
    ...
    'wagtailextras',
    ...
]

For setup of individual parts, please continue below.

ObfuscateEmailAddressMiddleware

Transforms emailaddresses to decimal/hexadecimal unicode character entities to foil bots trying to harvest emailaddress

Setup

Add the following to the middleware:

MIDDLEWARE = [
    ...
    'wagtailextras.middleware.ObfuscateEmailAddressMiddleware',
    ...
]

ForceCsrfCookieMiddleware

Forces Django to create an CSRF token for you when you for example are using JavaScript forms.

Setup

Add the following to the middleware:

MIDDLEWARE = [
    ...
    'wagtailextras.middleware.ForceCsrfCookieMiddleware',
    ...
]

Breadcrumbs

Returns an ordered list in the template, showing the current location.

Usage

Load the template tag:

{% load wagtailextras_tags %}

Write out the breadcrumbs in the html:

{% breadcrumbs %}

Main menu

A simple implementation showing the pagestructure of wagtail as a menu.

Usage

Load the template tag:

{% load wagtailextras_tags %}

Write out the menu in the html:

{% get_site_root as site_root %}
{% main_menu parent=site_root calling_page=self %}

Release files for wagtail-extras 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wagtail-extras 0.2.8
File Size Uploaded
wagtail-extras-0.2.8.tar.gz 4.8 kB Details

Release files / wagtail-extras-0.2.8.tar.gz

Download URL wagtail-extras-0.2.8.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5f75efaab927c24e6a5d83760b7b7b7c30514fa4b0326d0e35221ca3b2ee35cb
BLAKE2b-256 checksum
How to use checksums
c7e2b48a11392fb733908c92cbe016c74db8a509dd9dd5707dc209e0904b5f74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page