Skip to main content

Social Networks settings for wagtail sites.

Project description

Community-Project

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

Codacy Badge Codacy Badge

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.

content tab

settings tab

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_structblock-0.2.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

wagtail_sb_structblock-0.2.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

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

Hashes for wagtail_sb_structblock-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a05fe8436b44a3b4462762b02ee41bfebf9f050122b20a20d8d5eb4754cfeacf
MD5 702f69305cbeb694cabb0598f4cbdcfb
BLAKE2b-256 d546c4af029e99d8309501d93b026709ef607b5211c25d735b7a30f96772b510

See more details on using hashes here.

File details

Details for the file wagtail_sb_structblock-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_sb_structblock-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c22ce29e7afa007e3b827f0e9a674acaccde1184049968a5f0583a4dd9ccb7
MD5 436ed72d636de984e9069ef71f84df0a
BLAKE2b-256 cecb54d9078a106193d858d3c2b97473b1710b29668905dd0fdeec84d7106192

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