Admin Manager – HTML Templates

HTML Templates is where you manage the HTML templates, embedded fragments, and images used by Trade Control to generate documents and emails.

This module is intended for Administrators.

Admin Manager HTML Templates

What this module manages

Use HTML Templates to:

Access

Open:

On desktop, the module opens in the right-hand pane. On mobile, it opens as a full page.

System templates (Support Requests and User Registration)

Some system-generated emails are assigned under System Templates.

System Templates assignments (Support Request and User Registration)

This page is where the application assigns templates for:

Configure a template type (example: Invoices)

The workflow is the same pattern for any template type in Admin Manager:

  1. Select the template type (for example Invoice Templates).
  2. Select the subtype (for invoices, the invoice type dropdown).
  3. Assign one or more HTML templates.
  4. Assign images (if the HTML references cid:[TAG] images).
  5. Parse templates to validate they will render correctly.

Assign an HTML template (invoice example)

  1. Select the invoice type from the dropdown at the top of the page.
  2. Under Assign a new template, select a template file.
  3. Select Assign.

Expected outcome:

Validate templates (Parse)

Parsing identifies issues that would prevent output rendering correctly.

In Assigned templates:

Parsing templates to validate output

Parsing checks:

Expected outcome:

Embedded templates (.tpl) and required structure

HTML templates can reference embedded fragments using directives such as:

These directives map to .tpl files in the templates folder.

Embedded .tpl fragments must contain:

If [Items] is missing, the embedded fragment exists but will not render repeating content.

Template images (LOGO and other linked resources)

If the HTML template references an inline image, for example:

Then LOGO must be assigned to an image file for that specific template.

  1. In Assigned templates, select the template name to open Template Images.
  2. Under Assign a new image, choose an image file and select Assign.
  3. If needed, edit the tag so it matches the tag referenced in the HTML (for example LOGO).
Template Images management

Expected outcome:

Common errors

Unknown field tag

Cause:

Fix:

Missing embedded template directive

Cause:

Fix:

Embedded template invalid (missing [Items])

Cause:

Fix:

Image tag not assigned to template

Cause:

Fix: