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 Coverage 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 SBStructBlock and you must specify the settings_fields ub your Meta class.

from wagtail.blocks import StructBlock
from wagtail_sb_structblock.blocks import SBStructBlock

class EnhancedHTMLBlock(SBStructBlock):
    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.1.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

wagtail_sb_structblock-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_sb_structblock-0.1.0.tar.gz.

File metadata

  • Download URL: wagtail_sb_structblock-0.1.0.tar.gz
  • Upload date:
  • Size: 9.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 ff387d4753ea327734a68e794eb0a212ecdb47537a6f3dde67e935d4f54537d3
MD5 c269f246a1db14a8cd06f7d2ef91b69d
BLAKE2b-256 92bd40e9b2254545bce7914e0cb1b672d3ae0872da74ced70ac44526bacfa094

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wagtail_sb_structblock-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e503dfcba5427f8885146c6186fd919515078c93b62917b2fb01538d2b3f3ca
MD5 007ec40765f1f10f510bc304d8d2baa4
BLAKE2b-256 75aeac4d2c4f156c0751cb3166f2c403176be5bc4f55d474e41667ea67b4229e

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