Skip to content

Custom z3cform field to replace RichText into blocks

License

GPL-2.0, Unknown licenses found

Licenses found

GPL-2.0
LICENSE.GPL
Unknown
LICENSE.rst
Notifications You must be signed in to change notification settings

collective/collective.volto.blocksfield

Repository files navigation

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.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

About

Custom z3cform field to replace RichText into blocks

Resources

License

GPL-2.0, Unknown licenses found

Licenses found

GPL-2.0
LICENSE.GPL
Unknown
LICENSE.rst

Stars

Watchers

Forks

Packages

No packages published