π¦ Install sc-videos in a Plone project#
This tutorial walks you through installing sc-videos in an existing Plone 6.1+ project that was generated with Cookieplone.
sc-videos is a monorepo add-on: it ships a backend Python package (sc.videos) and a frontend Volto package (@simplesconsultoria/volto-videos).
Both must be installed for the add-on to work.
π§ Prerequisites#
A Plone 6.1+ project created with Cookieplone
Python 3.12+
Node.js 20+
makeavailable on your system
1οΈβ£ Install the backend#
Add sc.videos to your project's backend policy package's pyproject.toml:
[project]
dependencies = [
"Products.CMFPlone",
"sc.videos",
Then load its ZCML configuration.
If your project has a Python package with custom code, add the following line to your package's dependencies.zcml or configure.zcml:
<include package="sc.videos" />
2οΈβ£ Install the frontend#
Add the Volto add-on to your project's policy package: the package under frontend/packages/ that represents your site.
Note
Always edit the policy package's package.json, not the top-level frontend/package.json.
Open your policy package's package.json and add the dependency and register it in the addons array:
{
"dependencies": {
"@simplesconsultoria/volto-videos": "workspace:*"
},
"addons": [
"@simplesconsultoria/volto-videos"
]
}
3οΈβ£ Install and start#
From the project root, install all dependencies and start the servers:
make install
make start
4οΈβ£ Activate the add-on#
Open your Plone site in the browser (usually
http://localhost:3000).Navigate to Site Setup β Add-ons.
Find Video Support for Plone in the list and click Install.
5οΈβ£ Verify the installation#
After activating the add-on:
Click Add new⦠in the toolbar.
You should see Video in the list of available content types.
The Video content type comes with a Video Player block pre-configured in its layout.
Tip
If you don't see the Video content type, make sure both the backend and frontend packages are installed and the site has been restarted.
βοΈ Next steps#
π¬ Create your first Video. Create your first Video content and fetch metadata from YouTube or Vimeo.
π Configure the YouTube Data API. Set up a YouTube API key for richer metadata.