How to install the frontend#
This guide shows you how to add @plonegovbr/volto-social-media to a Volto project.
Do How to install the backend first. The frontend reads what the backend package serves, and shows nothing without it.
Requirements#
Volto |
Developed against 19.4.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-social-mediain both keys.{ "addons": [ "@plonegovbr/volto-social-media" ], "dependencies": { "@plonegovbr/volto-social-media": "*" } }
dependenciesfetches the package.addonsis what Volto reads to load it: an add-on only independenciesis installed, and never loaded.Install.
make frontend-installStart.
make frontend-start
If your project has no add-on package of its own, add the name to the addons list in volto.config.js instead.
Styles#
The add-on's styles reach the page through the theme. Volto Light Theme includes them. With another theme, see Styles for what your theme must import.
Verify#
Log in, and edit the site root.
Open the Social Media section of the sidebar.
The Profiles field is a table with an Add Link button beside its label.
If it is not a table, the add-on is not loaded: check that it is in the addons key, and install again.
Next steps#
How to set the site's links, to fill in the links.
How to add a Follow Us block, to show them on a page.
Volto add-on, for everything the add-on registers.