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.
2.0.0 (2023-07-03)
Drop support for Plone 5.2 and collective.dexteritytextindexer; in Plone6 we use core functions in plone.app.dexterity.textindexer [lucabel]
1.0.3 (2022-05-31)
Fix required python version. [cekk]
1.0.2 (2022-05-25)
add check if value is a dict in SearchableText indexer. [eikichi18]
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
Hashes for collective.volto.blocksfield-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87f038667168046117311f8567d0899cc0290650d97a968510a1a30bf49c749b |
|
MD5 | 776500ab503c2d51e31e542e45d9389a |
|
BLAKE2b-256 | 12cd090a07d84917c22631a9732a8f904f1e1165cd21c03ce4875f633e4cb2c0 |