Fields#
A token names a field of a certificate. The fields are fixed in version 1.0: the list is defined in one place in the add-on, so a new field needs a code change.
Each field has a kind.
A field of kind text takes any string, date takes an ISO date (YYYY-MM-DD), and computed is filled in by the system when a certificate is created.
Callers never provide computed fields, and a template's sample data cannot set them.
Token |
Title |
Kind |
Sample value |
|---|---|---|---|
|
Full name |
text |
|
|
Event name |
text |
|
|
Event start date |
date |
2026-05-26 |
|
Event end date |
date |
2026-06-09 |
|
Responsible person |
text |
|
|
Total hours |
text |
47 |
|
Certificate ID |
computed |
|
|
Verification URL |
computed |
|
The sample values are the ones the designer and the server preview use when the template has no sample data of its own. The sample verification URL is illustrative: a real one is the verification page of the site, with the certificate's UID.
Computed fields#
certificate_uid is the UID of the new certificate item.
verification_url is the address of the certificate's verification page, <site URL>/verify/<uid>.
The site URL comes from the VOLTO_FRONTEND_DOMAIN environment variable when it is set, and from the URL of the Plone site otherwise.
See verify a certificate for how to set it.
Requiring a field#
A template requires every non-computed field its blueprint uses. Rendering or creating a certificate without a value for one of them fails with the list of missing tokens.