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 %}
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtail-extras-0.2.8.tar.gz | 4.8 kB | Without provenance | Details for wagtail-extras-0.2.8.tar.gz |
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
|
Security for wagtail-extras 0.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.