Skip to main content

The brand new Wagtail StreamField!

Project description

http://img.shields.io/pypi/v/wagtail-react-streamfield.svg https://img.shields.io/pypi/dm/wagtail-react-streamfield.svg https://github.com/wagtail/wagtail-react-streamfield/workflows/CI/badge.svg

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.6.tar.gz (142.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wagtail-react-streamfield-1.3.6.tar.gz
  • Upload date:
  • Size: 142.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for wagtail-react-streamfield-1.3.6.tar.gz
Algorithm Hash digest
SHA256 3dfa923096abff6a460eede7116213b11b7c91f96f64a0b581caa32599ed7646
MD5 ad87a695063d5418f60e6760bf58d6d8
BLAKE2b-256 1bcfa5efe671a1a602bf51eba63e464e4d48db2fd89dc8d8565430f1265198eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wagtail_react_streamfield-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 146.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for wagtail_react_streamfield-1.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9048d1a9eb647f59629da48f7bbbf70f1326ae08957994efcc5d3a0521c51ae3
MD5 a937ec3a34e24daab6902c65c0a703a7
BLAKE2b-256 86442154b483ca37fc96bc198576870d2ace8742166f1497a9e9c698738c349f

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