2020.2

Table Of Contents
Function Description
"loadjson()" on
page1285
Loads JSON data from a URL. This is a simple way to retrieve content
from external systems.
"query()" on
page1293
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
page1389
This function returns information about an image resource. It can also
be used to check if a file exists.
"translate()" on
page1378
Gets the translation of a source text with an (optional) context. It returns
the message as-is if no translation is found.
Examples of iterator functions
Function Description
"each()" below A generic iterator function, to iterate over the elements in the result set.
"for(... in ...)"
on page1272
Iterates over the enumerable properties of an object, in arbitrary order. For
each distinct property, statements can be executed.
each()
A generic iterator function, to iterate over the elements in a result set.
Tip
Instead of using the each() function to loop over a result set, you could set the scope of
a Standard script or Post Pagination script to "Each matched element" and access each
matched element directly via the this object. See "Setting the scope of a script" on
page860 and "this" on page1338.
Page 1269