Suffixes for Image and File Field Keys

To be able to extract specific values from fields containing images or files, we make use of suffixes in order to refer to specific properties of these items.

{product_image.source} returns the URL of the image when first uploaded in Sales Layer
{product_image.org} returns the URL of the image in the original size on the Sales Layer servers
{product_image.1.org} returns the URL of the first image file if there are multiple ones
{product_image.all.org} returns the URL of the image file if there are multiple ones
{product_image.1.THM} returns the first image that is medium sized in the image gallery
{product_image.width} returns the width of the image

The different suffixes that can be used are:

.source, .org, .origin, .size, .width, .height, .bits, .type, .mime, .org, and .name

Any fields in a channel that export actual images or files cannot make use of formulas, however, these fields can still be configured so that they are “normal” fields, which then allows us to apply formulas to them.

It is worth mentioning in the use of formulas with images and files. For example, in a connector, it is impossible to extract the URLs of an image or file whose field is multilanguage. The solution in this specific case is to enable the necessary languages in the connector parameters.