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.1.0 (2024-08-09)
Add serializers and deserializer for slate blocks. [cekk]
Add indexer for slate blocks. [cekk]
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
Built Distribution
File details
Details for the file collective.volto.blocksfield-2.1.0.tar.gz
.
File metadata
- Download URL: collective.volto.blocksfield-2.1.0.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 735022476095efab2818d1bee12cd7bca4f085ccaded4bc564663b5ec81a40c0 |
|
MD5 | af7eab34e1f33772b418f9491fa169a1 |
|
BLAKE2b-256 | 9371eb0b2b4406c5a17fe4e685791418dc2af5825f6ef438d4e0e36c7afecbb5 |
File details
Details for the file collective.volto.blocksfield-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: collective.volto.blocksfield-2.1.0-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b79a93c24604c265843bb8348e92091d6548dfaf71798d026dc4c126c6b1a26d |
|
MD5 | 21691995c2b068e49a4413958f16c384 |
|
BLAKE2b-256 | a212177cd24eb52910f2dfeba93fb6fde130be41810477d733fa77efe9d08be9 |