Create image frames
The Sitecore Content Publisher lets you create an image frame and add alternative images to use in that frame.
In this walkthrough, you create an image frame and set it with an asset from Sitecore Digital Asset Management (DAM).
Create an image frame
To create an image frame:
-
On the menu bar, click Publisher > Templates.
-
On the Templates page, on the template you want to modify, click
.
-
In the Sitecore Content Publisher editor, on the right-hand toolbar, click FRAME.
-
On the top toolbar, click Create Frame > Image.
-
Drag the new empty frame to the desired template area.
-
On the IMAGE tab, in the Image Settings pane, click Assign Image.
-
In the SELECT IMAGE dialog, select an asset from the Assets category. This asset acts as a placeholder for adding DAM assets.
-
On the FRAME tab, under Frame Location, enter a tag in the Tag field, for example, Image_alternatives.
-
Click Save.
-
Back on the template details page, click
Revalidate template.
-
On the Dynamic frames tab, click
Dynamic frame.
-
In the Dynamic frame dialog, next to Frame, click Image_alternatives in the drop-down menu.
-
Click Add result set.
-
Under Result set, click an option in the drop-down menu and then click select. For this walkthrough, choose Asset.
-
In the Select result set dialog, either search manually or select the assets you want to use as alternative images.
-
Click Select.
-
Click Save.
Assign an alternative image
To assign an alternative image:
-
On the menu bar, click Publisher > Templates.
-
On the Templates page, on the template you want to modify, click
.
-
On the Frames tab, click the image you want to replace.
-
On the Library images tab, which displays the Sitecore DAM assets you assigned to the result set for the image frame, click the image you want to use as alternative image.
-
Click Save.