Skip to main content

Tabbed interface for Wagtail's struct blocks with settings fields.

Project description

Community-Project

PyPI - Supported versions PyPI - Package version PyPI - Downloads PyPI - MIT License

Codacy Badge Codacy Badge pipeline status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail_sb_blocks-0.2.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

wagtail_sb_blocks-0.2.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

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

Hashes for wagtail_sb_blocks-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cfee87067494d5ba1b796c0bdfbb4a3aea232f51fd9d8f4628546d8f54b1defa
MD5 825953dc717f26fe22ad03ae62659722
BLAKE2b-256 3781636a564bfa87757801a65f2b06ed72030b0f411049d0533a9fc0cf74899f

See more details on using hashes here.

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

Hashes for wagtail_sb_blocks-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7777b6b98a626a23bbd8e0ebfdd1ae09d7c5d4bce643d2c6e39710445744656
MD5 b8ba341c0cc1da16ab2cb90f7cf82c5d
BLAKE2b-256 f6606a655409ef35def59e331a2793ae0ee93d6ee151539e3e2d448eac7d0ba8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page