diff --git a/process/DocumentTemplate_lib/documentation.adoc b/process/DocumentTemplate_lib/documentation.adoc index 8f3be0327a57684226b9ef02336bcd09a0f8d9e5..547a9f00eb224a20d88876f161c2f94cc8088230 100644 --- a/process/DocumentTemplate_lib/documentation.adoc +++ b/process/DocumentTemplate_lib/documentation.adoc @@ -61,4 +61,16 @@ var additionalPlaceholders = [ var myContent = myTemplate.getReplacedContentByContactId(vars.get("$field.CONTACTID"), additionalPlaceholders); ---- +=== Document generation options + +Some aspects of the behavior of the document generation can be controlled by setting the `options` property of the DocumentTemplate with `.setOptions`. Available options differ depending on the DocumentTemplate type, that's why the options are wrapped inside an object. These options can currently be used: +[%header,cols="1,3,2"] +|=== +| Option | Description | Supported types +| base64 | Controls if the replaced content will be base64-encoded | txt, html, eml +| onlyBody | If set to true, only the body of an eml will be used as content | eml +|=== + +When a new DocumentTemplate is created, a default set of options will be loaded depending on the type. + //TODO: explain subtemplates, serial letters, (bulk-)emails \ No newline at end of file