Skip to content
- Email templates: the design of the emails Heskala sends. There are three targets: system notifications, a collection (emails from its automations) and scripts. They are edited with a visual block editor and the target’s variables.
- PDF templates: how a collection record is printed (page, theme and blocks), with its lines and data from related records.
- Notification and script emails: Settings → Notifications (Configuración → Notificaciones). A collection’s emails: Settings → Collections → the collection → Email templates (Plantillas de correo).
- Create the template, insert variables and check the preview. Save with ⌘S or Ctrl+S.
- PDF: Settings → Collections → the collection → PDF templates (Plantillas PDF) → «New template (from the system one)».
- Mark which template is in use for its target; earlier ones stay in the version history.
- Automation emails can attach the PDF of a template.
- The first template of a target becomes the one in use and replaces the system email or PDF. If you delete it, the system one comes back.
- Viewing templates requires
templates:view; editing them, templates:edit.
- An email template takes a few seconds to compile after saving.
- Email:
get_email_editor_guide (read it first), list_email_templates, get_email_template, create_email_template, update_email_template, set_default_email_template, restore_email_template_version, delete_email_template.
- PDF:
get_pdf_template_guide (read it first), list_pdf_templates, get_pdf_template, create_pdf_template, update_pdf_template, clone_pdf_template (test without touching the current one), set_default_pdf_template, delete_pdf_template.