Expand my Community achievements bar.

Design importer in AEM 6.3- Reference images from dam or etc/designs

Avatar

Level 2

Hi,

We are using Design importer to upload landing pages for a temporary setting. We have some common images like logos and icons across all the landing pages and want to store them at a single location and reference them across different landing pages. Is there any way to reference the images from DAM or /etc/designs in mark uploaded to the design importer component. I know we can reference external sites like <img src="path-to-image.jpg" but can we do <img src="cq-design-path/path-toimage.jsp"> or <img src="/content/dam/path-to-image.jpg">. Please let me know. Appreciate your help.

Thanks,

Deepak

1 Reply

Avatar

Level 10

Typically to reference images located in the AEM DAM - you use a granite data type like a PathField.

PathField — Granite UI 1.0 documentation

The PathField will resolve the location of the asset that is chosen.