Common StreamField blocks for Wagtail
Project description
Wagtail Commonblocks
====================
# Quickstart
Assuming you have a [Wagtail](https://wagtail.io/) project up and running:
``` $ pip install commonblocks```
Add commonblocks to your `settings.py` in the INSTALLED_APPS section:
```
...
'commonblocks',
'wagtail.contrib.wagtailsitemaps',
...
```
# Available blocks
* CommonPageChooserBlock
* SimpleRichTextBlock
* CommonImageBlock
* CommonQuoteBlock
* CommonHeadingBlock
* CommonVideoBlock
* CommonInternalLink
* CommonExternalLink
* CommonLinksBlock
You can override the headings of the `CommonHeadingBlock` block:
```
...
COMMONBLOCKS_HEADING = (
('h1', 'h1'),
('h2', 'h2'),
)
```
====================
# Quickstart
Assuming you have a [Wagtail](https://wagtail.io/) project up and running:
``` $ pip install commonblocks```
Add commonblocks to your `settings.py` in the INSTALLED_APPS section:
```
...
'commonblocks',
'wagtail.contrib.wagtailsitemaps',
...
```
# Available blocks
* CommonPageChooserBlock
* SimpleRichTextBlock
* CommonImageBlock
* CommonQuoteBlock
* CommonHeadingBlock
* CommonVideoBlock
* CommonInternalLink
* CommonExternalLink
* CommonLinksBlock
You can override the headings of the `CommonHeadingBlock` block:
```
...
COMMONBLOCKS_HEADING = (
('h1', 'h1'),
('h2', 'h2'),
)
```
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
Built Distribution
Close
Hashes for wagtailcommonblocks-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24ddf31fcf75e3982c33a1ebd75ed3da679ebc0dcae50372580a7c6dbc367680 |
|
MD5 | ee765a0f1c953ed894022fb729ef5e9f |
|
BLAKE2b-256 | 61d35b2591bec87080e5aad86736000b19ad1c05b505fe70cf5c1925bb533855 |
Close
Hashes for wagtailcommonblocks-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a1bb29b5c65ad68d05737369fc40f478ee049b585a4dde73a137a6cca1a0692 |
|
MD5 | 7198ad59b02f2201a4382f80d4742d08 |
|
BLAKE2b-256 | 6e7d2fe205ab186a33917f7d3ec9a86281ad081f8067de38db1351be1de582ed |