Social Networks settings for wagtail sites.
Project description
Wagtail SB Struct Block
Wagtail package to render render struct block with a tabbed interface to distinguish between content fields an settings fields in struct blocks.
Requirements
- Python 3.8.1 or higher
- Wagtail 3.0 or higher
- Django 3.2 or higher
Install
pip install wagtail-sb-structblock
Usage
Add wagtail_sb_structblock to your INSTALLED_APPS settings
INSTALLED_APPS = [
# ...
"wagtail_sb_structblock",
# ...
]
In your struct blocks must inherith from StructBlock and you must specify
the settings_fields ub your Meta class.
from wagtail.blocks import StructBlock
from wagtail_sb_structblock.blocks import StructBlock
class EnhancedHTMLBlock(StructBlock):
text = CharBlock()
html_attrs = CharBlock()
class Meta:
settings_fields = [
"html_attrs",
]
Include it in your stream file and your model so you can use a tabed interface for your struct block.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wagtail_sb_structblock-0.2.0.tar.gz.
File metadata
- Download URL: wagtail_sb_structblock-0.2.0.tar.gz
- Upload date:
- Size: 9.7 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 |
a05fe8436b44a3b4462762b02ee41bfebf9f050122b20a20d8d5eb4754cfeacf
|
|
| MD5 |
702f69305cbeb694cabb0598f4cbdcfb
|
|
| BLAKE2b-256 |
d546c4af029e99d8309501d93b026709ef607b5211c25d735b7a30f96772b510
|
File details
Details for the file wagtail_sb_structblock-0.2.0-py3-none-any.whl.
File metadata
- Download URL: wagtail_sb_structblock-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.5 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 |
b3c22ce29e7afa007e3b827f0e9a674acaccde1184049968a5f0583a4dd9ccb7
|
|
| MD5 |
436ed72d636de984e9069ef71f84df0a
|
|
| BLAKE2b-256 |
cecb54d9078a106193d858d3c2b97473b1710b29668905dd0fdeec84d7106192
|