ContentImagebyKey

Overview

Returns an img tag with the src attribute containing the path to an image from Content Builder. Identify the image to include with the ID value. The img tag includes the title and alt information for the selected image, as well as a border value (measured in pixels) and any identified thid value. If the value of the first parameter does not link to a valid image, you can include another image value for the second parameter as a default option. Use only with Image-type content in Content Builder. This function does not work with the Image Block type.

Syntax

ContentImagebyKey(1, 2)

Function Properties

OrdinalTypeDescription
1stringRequiredExternal key of image to return
2stringRequiredValue used to return image if function cannot find the original image ID

Usage

System returns:

If, for some reason, the CorpLogo image could not be retrieved, system returns: