πŸ“¦ 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+

  • make available 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#

  1. Open your Plone site in the browser (usually http://localhost:3000).

  2. Navigate to Site Setup β†’ Add-ons.

  3. Find Video Support for Plone in the list and click Install.

5️⃣ Verify the installation#

After activating the add-on:

  1. Click Add new… in the toolbar.

  2. You should see Video in the list of available content types.

  3. 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#