Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/collective/collective.volto.blocksfield
Custom z3cform field to replace RichText into blocks
https://github.com/collective/collective.volto.blocksfield
Last synced: 8 days ago
JSON representation
Custom z3cform field to replace RichText into blocks
- Host: GitHub
- URL: https://github.com/collective/collective.volto.blocksfield
- Owner: collective
- License: gpl-2.0
- Created: 2021-01-20T13:19:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-05T09:18:49.000Z (11 months ago)
- Last Synced: 2024-04-24T15:18:48.496Z (7 months ago)
- Language: Python
- Size: 57.6 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.GPL
Awesome Lists containing this project
- awesome-volto - collective.volto.blocksfield - Custom z3c.form field that allows to use Volto blocks. This field can replace RichText fields in your custom content-types. (Addons / Plone backend add-ons for Volto)
README
============================
collective.volto.blocksfield
============================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.blocksfieldand then running ``bin/buildout``
You don't need to install it.
TODO
----- Tests
Contribute
----------- Issue Tracker: https://github.com/collective/collective.volto.blocksfield/issues
- Source Code: https://github.com/collective/collective.volto.blocksfieldLicense
-------The project is licensed under the GPLv2.
Authors
-------This product was developed by **RedTurtle Technology** team.
.. image:: https://avatars1.githubusercontent.com/u/1087171?s=100&v=4
:alt: RedTurtle Technology Site
:target: http://www.redturtle.it/