Volto add-on
Volto block type question and answer (FAQ)
-
Create a new volto project if you don't already have one:
npm install -g yo @plone/generator-volto yo @plone/volto
-
Update
package.json
:"addons": [ "@rohberg/volto-accordion-block" ], "dependencies": { "@rohberg/volto-accordion-block": "*" }
-
Install new add-on and restart Volto:
$ yarn $ yarn start
-
Go to http://localhost:3000
-
Login and edit a page by adding a block of type FAQ
Katja Süss, Rohberg (@ksuess)
If you are new to Volto (Plone 6):
See the training Mastering of Plone 6 development where I use this use case and code to explain how to create a custom block type and how to create a Volto add-on.