Customizable Printout Templates

Hector produces a standard printout for most records. If that layout doesn’t fit your organization, create your own printout templates: logo, wording, table columns, legal notices. Hector replaces the tags with the real values at print time.

A printout template is used in two ways:

  • Printing: from a record, or for several records at once from a list (see Using a template).
  • Email attachment: an email template can attach the record’s printout as a PDF (see As an email attachment).

Available entities

Each template is tied to one entity, which determines the tags offered. Most Hector entities are supported.

The Entity list only shows the entities whose module is enabled in your instance.

Some entity names follow your instance’s vocabulary. For example, if you renamed “Place” to “Worksite”, “Worksite” is what you will see.

If a module is disabled later on, its templates stay in the list, but they cannot be saved until the module is enabled again.

Before you start

  • Creating and editing templates requires the Castle plan. On other plans, the New button is disabled.
  • Creating, editing or deleting a template requires full access to the Templates settings. See the Permissions Management Guide.
  • To use a template, users only need the permission to print the entity.

Opening the template list

Go to Settings > Customization > Templates, Printout tab. The other tabs hold email templates and forms.

Use the grid’s Entity column to filter templates by entity.

Creating a template

Click New.

1 – Name, entity and language

  • Template Name: pick a clear name. This is the name shown in the print menu.
  • Entity: choose it first. The tags offered depend on it.
  • Language: the language of this version of the template (see Translating a template).

2 – Starting from the default template

The Import Default Template button loads Hector’s standard layout for the selected entity. Importing replaces the whole content of the editor: import first, customize afterwards.

To see what the standard layout looks like, print any record of that type before creating your first template.

3 – Inserting tags

A tag is a code between double braces, for example {{PLACENAME}}. Hector replaces it with the record’s value at print time.

Under Template Content, choose a section in the dropdown, then the tag, and click Add. The tag is inserted at the cursor position in the editor.

4 – Inserting a list

Some tags display a list of items: the items of a loaner, the lines of an order, the assets assigned to a place, etc. When you choose a list tag, three extra options appear:

  • Choice of Filters: filters which items appear in the list and sets their sort order.
  • Fields Inside Tag: the fields repeated on every line of the list.
  • Fields Outside Tag: fields calculated across the whole list (for example a total). They are linked to the list by an identifier, so they can be placed anywhere in the template.

5 – Formatting

The editor supports tables, paragraphs, colors and images. An HTML code mode gives finer control over column widths and spacing. Pasted images are kept when you save.

6 – Display order and permissions

  • Sort #: the template’s position in the print menu. The first template becomes the default choice of the Print button (see Using a template).
  • Permissions: the groups, departments, roles or users who can use the template. Left empty, the template is available to anyone who can print that type of record.

Save with Save & View or Save & List.

Example: a loan form to be signed

Choose the Loaner entity, import the default template, add your logo to the header and keep the list of loaned items with the columns you need. Then add your terms of use and a signature area at the bottom of the page.

Translating a template

A template can have one version per language. In the template list, use Add english translation, Add french translation or Add german translation, then write the translated text.

Entity, Sort # and permissions are set once, on the original template, and apply to all its translations.

Which language is the printout produced in?

Hector chooses the printout’s language as follows:

  • Purchase Order: the language of the order’s contact, if they have a valid email address. Otherwise, the vendor’s language. Otherwise, the language of the person printing. An order sent to a French-speaking vendor therefore prints in French, even if you work in English.
  • All other entities: the language of the person printing. For example, the printout of a Vendor record does not follow that vendor’s language.
  • Email attachment: the language of the email.

If no translation exists in that language, Hector uses the original template.

Managing existing templates

  • Copy: creates a new template from this one, with its content and permissions.
  • Activate / Deactivate: restores the template to print menus or removes it, for all its translations at once.
  • Delete: deletes the template and all its translations.

Using a template

From a record

A record’s Print button depends on the active templates you have permission to use for that type of record:

  • No template: the button produces the standard printout.
  • One or more templates: the button opens the first template in Sort # order, and the arrow next to it lists the others. The standard printout is then no longer offered.

To keep the standard layout at hand, create a template with Import Default Template and save it without changes.

Exception for loaners: the Print button always produces the standard printout, and the arrow lists your templates. Templates also appear under Detailed Print.

For several records

  1. In the list, check the records to print.
  2. An action bar appears. Click the print icon, or its arrow to choose a template.
  3. All the records open in a single document, each on its own page.

The choice offered follows the same rule as on a record: the standard printout if there is no template, otherwise your templates.

As an email attachment

An email template can attach the printout of the record concerned. Hector then generates a PDF from the printout and attaches it to the email.

  1. Open the email template for editing.
  2. Next to Attachments, click the paperclip icon.
  3. In the Choose attachments to add to your email window, choose the entity on the left, then the printout: the standard printout or one of your printout templates.
  4. Click Add. The printout appears under Attachments.

For the rest of the email setup, see Customizable Email Templates.

The printout opens in the browser’s print dialog. If colors or shading are missing, enable Background graphics. Also check paper size and margins: a wide table may need smaller margins to fit on one page.

Updated on October 20, 2026

Was this article helpful?

Related Articles