Skip to main content

The brand new Wagtail StreamField!

Project description

http://img.shields.io/pypi/v/wagtail-react-streamfield.svg?style=flat-square&maxAge=3600

Drop-in replacement for the StreamField in Wagtail.

This work was funded thanks to a Kickstarter campaign!

It relies on react-streamfield, a React package created for the occasion.

This work is currently in beta phase and will in the end be merged in Wagtail. You should be careful and manually check that it works for your own StreamField and report any bug you find.

Requirements

Wagtail 2.6 or above.

Getting started

It’s really easy to setup, like most NoriPyt packages:

  • pip install wagtail-react-streamfield

  • Add 'wagtail_react_streamfield', to your INSTALLED_APPS before 'wagtail.admin', 'wagtail.images', 'wagtail.docs' & 'wagtail.snippets'

That’s it!

Usage

wagtail-react-streamfield has the same class API as the regular StreamField. What changes:

Meta attributes (or passed to __init__)

closed

Set to True to close all blocks of this type when loading the page. Defaults to False.

Screenshots

https://raw.github.com/noripyt/wagtail-react-streamfield/master/wagtail-react-streamfield-screenshot-1.png https://raw.github.com/noripyt/wagtail-react-streamfield/master/wagtail-react-streamfield-screenshot-2.png https://raw.github.com/noripyt/wagtail-react-streamfield/master/wagtail-react-streamfield-screenshot-3.png

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

wagtail-react-streamfield-1.3.3.tar.gz (142.4 kB view details)

Uploaded Source

Built Distribution

wagtail_react_streamfield-1.3.3-py3-none-any.whl (146.1 kB view details)

Uploaded Python 3

File details

Details for the file wagtail-react-streamfield-1.3.3.tar.gz.

File metadata

File hashes

Hashes for wagtail-react-streamfield-1.3.3.tar.gz
Algorithm Hash digest
SHA256 405d0ba69506e7dfcec4e8a758dbf7f5518b577364479ad6bbea23527e771868
MD5 eb1eddd13af829ad4ae79a019640fe37
BLAKE2b-256 69ecadc12d9658c36ad4893b24982e98fd787b99f54e0ace88d1022fec98acbe

See more details on using hashes here.

File details

Details for the file wagtail_react_streamfield-1.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_react_streamfield-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f973cca31ba604eeb70fef6343e0dcf0eae180c241092f33196dc7ac490d1d1
MD5 0b352189aba3ef567a46afdd262d9642
BLAKE2b-256 6ed158a3e848bc691e362a3250d34b754209d94f780fc914c5db36e38ed5e008

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page