Tabbed StructBlock
A new UI for StructBlocks
As custom blocks grow in fields it becomes necessary to group and hide some of the block fields. Tabbed StructBlock allows such grouping into a tabbed UI.
Installation
- Install the package with
pip install wagtail-tabbed-structblock. - Add to
INSTALLED_APPSaswagtail_tabbed_structblock.
Usage
- Import the class with
from wagtail_tabbed_structblock.blocks import TabbedStructBlock. - Create your
StructBlockas usual extendingTabbedStructBlock. - Define the tabs in the
Metaclass of the block as shown in the example below.
from wagtail import blocks
from wagtail_tabbed_structblock.blocks import TabbedStructBlock
class ExampleBlock(TabbedStructBlock):
title = blocks.CharBlock()
content = blocks.RichTextBlock()
class Meta:
tabs = {
'Header': ('title',),
'Body': ('content',)
}
The tabs property of the Meta class is a dictionary composed of the title of the tab and a tuple of the fields you want to include on that tab.
Metadata
Release files for wagtail-tabbed-structblock 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wagtail_tabbed_structblock-0.0.11.tar.gz | 19.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wagtail_tabbed_structblock-0.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.1 kB
Release files / wagtail_tabbed_structblock-0.0.11.tar.gz
| Download URL | wagtail_tabbed_structblock-0.0.11.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7e5eb064137078db8b5e0dd3ae8a33bb5e677c6c1b1616953d2a3294bf4bfa8
|
|
BLAKE2b-256 checksum How to use checksums |
d236337627f782bfed4425eeffee6a558fa2c8da22d755e120b7078dfee75106
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.
Transparency logRelease files / wagtail_tabbed_structblock-0.0.11-py3-none-any.whl
| Download URL | wagtail_tabbed_structblock-0.0.11-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1184fb311c07d7bfe61808bbe21329e5d0f861040dc99f28ad62210c8db78379
|
|
BLAKE2b-256 checksum How to use checksums |
ba10eccb1d88e85608c49e5faaeafe694293b46cff96664ff687ef4db4c09de1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.
Transparency log