Search guides, API overviews and endpoints by name, path or keyword.

Dynamic templates

Load, version and download the dynamic templates of the tenant's documents.

Admin Last updated

Manage the tenant’s dynamic templates: load them from one .zip per language, upload new versions, open them in the template editor and download them.

Open Dynamic templates in Admin →

ℹBefore you start
Select a tenant in the Admin header. The templates you see belong to that tenant.

View the templates

The Dynamic templates table shows, for each template, its Name, current Version, Default language, the Languages it has and its Creation date. You can filter by Name, Language and Creation date.

Click a row to see its languages. The download icon of each language downloads the template in that language.

Dynamic templates list with an expanded row

The ⋮ menu of each template offers:

OptionWhat it does
Edit or PreviewOpens the template in the template editor, in a new tab.
UpdateCreates a minor version: Update a template.
Upload versionCreates a major version: Upload a version.
DownloadDownloads the template in its default language.
VersionsOpens the version history.
DeleteDeletes the current major version.

Create a template

  1. Press Create template.
  2. In Languages, pick the template’s languages.
  3. Drag each language’s .zip file onto its area, or click the area and pick it. See what it must contain in The .zip file.
  4. Mark the default language. The first one you load is marked as Default.
  5. Check the Name. If it was empty, it is filled in with the name of the first .zip.
  6. Pick or add up to five Tags.
  7. Write a Description.
  8. Press Create. When it finishes, “The template has been loaded successfully” appears; press Close.
Create template window with two languages loaded

The Template editor button opens the editor in a new tab, to design a template from scratch.

Update a template

Update creates a minor version within the current major version, for example from 1.0 to 1.1.

  1. In the template’s ⋮ menu, press Update.
  2. Pick the Languages and load each one’s .zip.
  3. Write what you changed in Changelog.
  4. Press Save. “Changes saved successfully” appears.

Upload a version

Upload version creates a major version, for example from 1.1 to 2.0.

  1. In the template’s ⋮ menu, press Upload version.
  2. Pick the Languages, load each one’s .zip and mark the default language.
  3. Check the Tags and the Description, and write the Changelog.
  4. Press Upload version. “Version uploaded successfully” appears.

View the version history

In the template’s ⋮ menu, press Versions. Version history opens with one row per version: Version, Change description, Default language, Languages and Creation date.

Version history of a template

From the history you can Delete the latest minor version. The initial version of each major version, such as 2.0, cannot be deleted.

Delete a template

  1. In the template’s ⋮ menu, press Delete.
  2. Check the name and version in Delete template and press Accept.

The current major version is deleted with all its minor versions.

The .zip file

Each language needs a .zip of 10 MB at most with:

  • a single template file, .hbs or .html, not both;
  • a .json file with the editor configuration;
  • a fields-schema.json file with the template’s fields.

The screenshots show the Admin interface in Spanish.

When something is not as expected

You seeWhat it means and what to do
”The file must be a valid ZIP”The file is not a .zip. Compress it again.
”The ZIP file is empty”The .zip has no files.
”The ZIP must contain a .hbs/.html file, a JSON file and fields-schema.json”One of the three files is missing. Check The .zip file.
”The ZIP file contains both .hbs and .html template files…”Keep only one of the two template files.
”The template could not be loaded”The service rejected the template. The message below gives the reason.
”The initial version of a template cannot be deleted.”Version X.0 cannot be deleted from the history. To remove it, delete the template.
You only see Preview instead of EditYou do not have write permission on the template editor. You can view the template, not change it.
You do not see Create template or the change options of the ⋮ menuYou do not have write permission on this section.

Reference

Languages

CodeLanguage
ESSpanish
CACatalan
EUBasque
GLGalician
ENEnglish