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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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