2019.2

Table Of Contents
Object Description
key-value pairs (a JSON string).
Note: The contentitem object is not available in PrintShopMail
Connect, due to the absence of a Connect database.
Global functions
Function Description
"fatalError
(message)" on
page1329
Triggers a fatal error that aborts content creation.
"loadhtml()" on
page1338
Loads HTML data from an HTML (snippet). The returned HTML can be
placed into a variable or into a set of HTML elements.
"loadjson()" on
page1342
Loads JSON data from a URL. This is a simple way to retrieve content
from external systems.
"query()" on
page1349
Performs a query in the template's contents and creates a new result
set containing the HTML elements that match the given CSS selector.
"resource()" on
page1360
This function returns information about an image resource. It can also
be used to check if a file exists.
Examples of iterator functions
Function Description
"each()" on
page1327
A generic iterator function, to iterate over the elements in the result set.
"for(... in ...)"
on page1329
Iterates over the enumerable properties of an object, in arbitrary order. For
each distinct property, statements can be executed.
Page 1289