Install Attendance Certificates for Plone

Install Attendance Certificates for Plone#

This guide installs the add-on in an existing Plone 6 site with a Volto frontend. You need Plone 6.1 or 6.2 on Python 3.11 to 3.14, and a Volto 19 project.

Backend#

  1. Add the package to your Python environment. With uv, from your project directory:

    uv add collective.certificates
    
  2. Restart the Plone instance. The package registers itself with plone.autoinclude.plugin, so Plone loads its ZCML at startup and no zcml line is needed.

  3. In the Plone site, open Site Setup, then Add-ons, and install Attendance Certificates for Plone: Install. This profile depends on plone.volto, and it adds the Certificate Template and Certificate content types.

Installing the example content profile, Attendance Certificates for Plone: Example content, is optional. It creates content that shows the add-on in use, including a certificate template named starfleet-academy-certificate at the site root, with a background, a signature as an Image item inside it, a design and sample data, ready to open in the designer.

Grant the add permissions#

The install profile grants the add permissions to no role, not even Manager. Until the site grants them, the Add menu does not offer Certificate Template or Certificate, and the REST and Python APIs cannot create certificates.

The two permissions are collective.certificates: Add CertificateTemplate and collective.certificates: Add Certificate. Grant them in the Security tab of the site root in the ZMI, or in a rolemap.xml file of a policy profile. Declare this add-on as a dependency of the policy profile, so that its file applies after the install profile. This example grants both permissions to Manager and Site Administrator:

<?xml version="1.0" encoding="utf-8"?>
<rolemap>
  <permissions>
    <permission acquire="False"
                name="collective.certificates: Add CertificateTemplate"
    >
      <role name="Manager" />
      <role name="Site Administrator" />
    </permission>
    <permission acquire="False"
                name="collective.certificates: Add Certificate"
    >
      <role name="Manager" />
      <role name="Site Administrator" />
    </permission>
  </permissions>
</rolemap>

The example content profile grants both permissions to Manager.

Frontend#

  1. Add the package to your Volto project's dependencies, then install it.

    pnpm add @plone-collective/volto-certificates
    
  2. Add it to the addons list of volto.config.js:

    const addons = ["@plone-collective/volto-certificates"];
    
  3. Restart the frontend. The designer widgets are registered by the add-on's configuration, so the template edit form shows the Design field once Volto is running with the add-on.

Check the installation#

  • The Add menu of a folder offers Certificate Template, once the add permissions are granted.

  • Editing a template shows a Design field with an Open designer button, once a background image is uploaded.

If the designer does not appear, check that the frontend was restarted with the add-on in addons, and that the backend profile is installed.

Next steps#