To display images that are stored in your Identity Vault (such as user photos), you can add the attribute name using the HTML Layout Editor. For example, adding the User Photo attribute displays the userâs photo. If you store images outside the Identity Vault, youâll need to use the IMG: tag (from the View Source mode of the HTML Editor) as follows:
Go to the portletâs preferences and access the HTML Editor.
Use the IMG: tag to combine a location, an attribute key, and a file extension using a syntax like this:
$[[IMG:âURLâ + attribute-key-name + âfileextensionâ]]
The following example shows the syntax you would use if you stored employee photos as JPG images by Last Name in the /images subdirectory of your application server:
At runtime, the portlet concatenates the URL with the LastName attribute and the file extension.jpg.
The HTML Editor supports a flexible syntax. It supports any combination of text and attributes so that the syntax is
$[[IMG:âsome textâ + attribute-key-name + ...]]