Enhanced Hero Block Volto add-on
This version requires: @plone/volto >= 16.0.0.alpha.46
(schemaEnhancer / addStyling).
Starting with version 6.0.0
we have the following breaking changes from version 5.x.x
:
- Removed inner
div
that was used to addquoted-wrapper
class. Thisclass
is now added on the maindiv
alongside the otherblock
options. - Block is using
BlocksForm
to add more than oneSlate
blocks. This is useful in case you have to add some sub titles or extra paragraphs inside theHero block
. The defaultSlate
tag is stillh2
but you can change it using the rich text options toolbar.
git clone https://github.com/eea/volto-hero-block.git
cd volto-hero-block
make
make start
Go to http://localhost:3000
-
Make sure you have a Plone backend up-and-running at http://localhost:8080/Plone
docker compose up backend
-
Start Volto frontend
-
If you already have a volto project, just update
package.json
:"addons": [ "@eeacms/volto-hero-block" ], "dependencies": { "@eeacms/volto-hero-block": "*" }
-
If not, create one:
npm install -g yo @plone/generator-volto yo @plone/volto my-volto-project --canary --addon @eeacms/volto-hero-block cd my-volto-project
-
Install new add-ons and restart Volto:
yarn yarn start
-
Go to http://localhost:3000
-
Happy editing!
See RELEASE.md.
See DEVELOP.md.
The Initial Owner of the Original Code is European Environment Agency (EEA). All Rights Reserved.
See LICENSE.md for details.