springload/wagtailblocks

Name: wagtailblocks

Owner: Springload

Owner: Springload

Description: Common StreamField blocks for Wagtail

Created: 2015-11-12 03:36:31.0

Updated: 2018-01-20 00:08:59.0

Pushed: 2017-07-04 21:46:09.0

Homepage: https://pypi.python.org/pypi/wagtailcommonblocks

Size: 28

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

wagtailcommonblocks PyPI

Common StreamField blocks for Wagtail.

Check out Awesome Wagtail for more awesome packages and resources from the Wagtail community.

Quickstart

Assuming you have a Wagtail project up and running:

install wagtailcommonblocks

Add commonblocks to your settings.py in the INSTALLED_APPS section, before the core wagtail packages:


'commonblocks',
'wagtail.contrib.wagtailsitemaps',

Available blocks

You can override the headings of the CommonHeadingBlock block:


ONBLOCKS_HEADING = (
('h1', 'h1'),
('h2', 'h2'),

Version history


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.