How to install the frontend#
This guide shows you how to add @plonegovbr/volto-brwidgets to a Volto project.
Do How to install the backend first. The backend fields name the widgets this add-on registers.
Requirements#
Volto |
Developed against 19.5.1 |
React |
18 |
Also needs |
|
Add the add-on#
A Cookieplone project has an add-on package of its own under frontend/packages/, and that package is where the project's add-ons are declared.
Edit
frontend/packages/<your-addon>/package.json, naming@plonegovbr/volto-brwidgetsin both keys.{ "addons": [ "@plonegovbr/volto-brwidgets" ], "dependencies": { "@plonegovbr/volto-brwidgets": "*" } }
Install the dependencies.
make frontend-installRestart Volto.
make frontend-start
In a project without such a package, add the dependency to frontend/package.json, and the name to the addons list of frontend/volto.config.js.
Verify the installation#
Open the add form of a content type that uses one of the fields.
The field shows its value formatted as you type, such as 01310-100 for a CEP.
See Volto add-on for everything the add-on registers.