Skip to main content

Field that allows to use blocks instead rich text

Project description

Custom z3c.form field that allows to use Volto blocks.

This field can replace RichText fields in your custom content-types.

Features

  • store a json object with all blocks informations (data and order)

  • restapi serializer/deserializer to manage internal links

  • registered custom indexer for collective.dexteritytextindexer (if installed)

How to use

Import it and use as a normal field:

from collective.volto.blocksfield.field import BlocksField

class IMySchema(Interface):

    my_field = BlocksField(
        title="A field with blocks",
    )

Installation

Install collective.volto.blocksfield by adding it to your buildout:

[buildout]

...

eggs =
    collective.volto.blocksfield

and then running bin/buildout

You don’t need to install it.

TODO

  • Tests

Contribute

License

The project is licensed under the GPLv2.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Contributors

Changelog

1.0.1 (2021-03-25)

  • Register standard blocks serializers/deserializer for IDexterityContent. Otherwise they don’t work. [cekk]

1.0.0 (2021-02-24)

  • Initial release. [cekk]

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

collective.volto.blocksfield-1.0.1.tar.gz (20.9 kB view details)

Uploaded Source

File details

Details for the file collective.volto.blocksfield-1.0.1.tar.gz.

File metadata

  • Download URL: collective.volto.blocksfield-1.0.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for collective.volto.blocksfield-1.0.1.tar.gz
Algorithm Hash digest
SHA256 acafa127fa1fb63348fc8cd76f9c52c2a7e3b761afe2e4b032722c145513e40f
MD5 ae01774d99df7fe53544c1225421ae27
BLAKE2b-256 c2700168893620c45a0b6dd18b0a23f10ea20b6dce397889c32fb5ce506dc6a9

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