Freemarker Context Variables for Item Templates#

In many templates, such as email templates and wiki inline templates, you can use Freemarker placeholders for item attributes. These templates use Freemarker as a language. The following table lists the available placeholders.

Name

Description

f<attributeID>

the (new) value of the item attribute via attributeID

<attributeName>

the (new) value of the attribute via the (non-localized) attribute name

f<attributeID>Old

the old value of the item attribute via attributeID

<attributeName>Old

the old value of the attribute via the (non-localized) attribute name

f<attributeID>Name

the name of the item attribute via attributeID

<attributeName>Name

the name of the attribute via the (non-localized) attribute name

f<attributeID>Label

the localized name of the item attribute via attributeID

<attributeName>Label

the localized name of the attribute via the (non-localized) attribute name

f<attributeID>Changed

boolean value indicating whether the item attribute identified by attributeID has just been changed

<attributeName>Changed

boolean value indicating whether the item attribute identified by the attribute name has just been changed

Each context variable is accessible via an <attributeID> or <attributeName> based naming scheme.

The attribute name is accessible under Customize -> Item Attributes. If the name is changed, the corresponding email templates should be checked/adjusted. The attributeID remains unchanged (no template review necessary), but it is more difficult to find (use of browser development tools/database etc.).

Please note that depending on very specific attribute configurations (e.g. if both AttributeX and AttributeXOld are defined) the context variables could return unexpected results (the last context variable overwrites the existing value in the context).