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.1.0.tar.gz
.
File metadata
- Download URL: wagtail_sb_blocks-0.1.0.tar.gz
- Upload date:
- Size: 8.9 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 | 87bfd686e520a3fda3996cbb74f9b5a2603eb05b6bf546d0bac54d339d4d05ed |
|
MD5 | ac47f972330b865a8ac99bac776385f2 |
|
BLAKE2b-256 | 8b9ab1aabf5bc0de06faf2c70111af58c294301585e99be9df176123074ef35d |
File details
Details for the file wagtail_sb_blocks-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: wagtail_sb_blocks-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.2 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 | 3686bd1f9259877e5b53348f56db53890b48577360c7301f6c850837674562bc |
|
MD5 | ef81c475e4a0bea8835261a492d83a4c |
|
BLAKE2b-256 | 21522ba58758a78343c869a4827ef18291a748c4d8661dde68526f891c442e88 |