Tabbed interface for Wagtail's struct blocks with settings fields.
Project description
Wagtail Blocks
Package with basic, adaptable and reusable blocks to build awesome sites with wagtail.
Requirements
- Python 3.8.1 or higher
- Wagtail 3.0 or higher
- Django 3.2 or higher
Install
pip install wagtail-sb-blocks
Usage
Add wagtail_sb_blocks
to your INSTALLED_APPS
settings
INSTALLED_APPS = [
# ...
"wagtail_sb_blocks",
# ...
]
In your stream blocks use blocks from this package to rapid development.
from wagtail.blocks import StreamBlock
from wagtail_sb_blocks.blocks import TitleBlock, ParagraphBlock, FigureBlock, ButtonBlock
class EnhancedHTMLBlock(StreamBlock):
title = TitleBlock()
paragraph = ParagraphBlock()
figure = FigureBlock()
button = ButtonBlock()
Docs
Changelog
All changes to versions of this library are listed in the change history.
Development
Check out our contribution guide.
Contributors
See the list of contributors here.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file wagtail_sb_blocks-0.2.0.tar.gz
.
File metadata
- Download URL: wagtail_sb_blocks-0.2.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-78-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfee87067494d5ba1b796c0bdfbb4a3aea232f51fd9d8f4628546d8f54b1defa |
|
MD5 | 825953dc717f26fe22ad03ae62659722 |
|
BLAKE2b-256 | 3781636a564bfa87757801a65f2b06ed72030b0f411049d0533a9fc0cf74899f |
File details
Details for the file wagtail_sb_blocks-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: wagtail_sb_blocks-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-78-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7777b6b98a626a23bbd8e0ebfdd1ae09d7c5d4bce643d2c6e39710445744656 |
|
MD5 | b8ba341c0cc1da16ab2cb90f7cf82c5d |
|
BLAKE2b-256 | f6606a655409ef35def59e331a2793ae0ee93d6ee151539e3e2d448eac7d0ba8 |