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.
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
File details
Details for the file collective.volto.blocksfield-1.0.0.tar.gz
.
File metadata
- Download URL: collective.volto.blocksfield-1.0.0.tar.gz
- Upload date:
- Size: 20.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd335b9ec394921f22d53cf8daf7ef460ab8e32e786272cce89dca05e0c97f54 |
|
MD5 | 0ed4934461631a50647390c8065d82c8 |
|
BLAKE2b-256 | 44b9226b2b0569389eec133b79fe4ce9c767941578b643eafd70369707324837 |