Create Custom Templates - mattias-skold/EnhancedExportDocumentation GitHub Wiki

Introduction

This documentation aims to support users using the Enhanced Export PRO to create their own custom templates. While users can make minor changes without knowing the templating languages like XSLT and HTML, it's considered a prerequisite for this documentation

To learn more on the different languages:

How it works

The general process is:

  1. Enhanced Exports collects the data options (provided by the selected template or changed by the user)
  2. Enhanced Export PRO fetch the data (based on passed options) and returns a data set
  3. The template is applied to the input data and generates the export output

How to use the template editor

General options

Name: The display name of the template

Id: The id of the template (you can [override templates](Override template) by setting the same id)

Scope: The scope controls visibility for the template (Collection or Project)

Language: Defines what templating language is used for this template.

Output: Defines what the output should be treated as (HTML or Markdown)

Tabs

Properties:

  • Default values for data fetching options
  • Custom options used by the template
  • Default Decorators for the template

Template: The template used to transforming the data

Data: Sample data from the latest export done

Preview: Shows a preview of the template in the tamplates tab applied to the data in the data tab

History: Short history for changes of the template.