Hi all,
Which is the best way to display image using image component? From /content or from /dam path?
/content/project/en/home/_jcr_content/root/content/responsivegrid/image.coreimg.100{.width}.png
or /content/dam/project/test.png ? I think by default, foundational image component uses the dam location. Where as core image component uses the /content location.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Content path -/content/project/en/home/_jcr_content/root/content/responsivegrid/image.coreimg.100{.width}.png
DAM Path - /content/dam/project/test.png
Both has advantages and disadvantages but surely you should go with /content/project/en/home/_jcr_content/root/content/responsivegrid/image.coreimg.100{.width}.png
Hi,
Content path -/content/project/en/home/_jcr_content/root/content/responsivegrid/image.coreimg.100{.width}.png
DAM Path - /content/dam/project/test.png
Both has advantages and disadvantages but surely you should go with /content/project/en/home/_jcr_content/root/content/responsivegrid/image.coreimg.100{.width}.png
I would like to add one point here -
If I follow /content/project/en/home/_jcr_content/root/content/responsivegrid/image.coreimg.100{.width}.png content path, in that case the image gets saved at the page level rather than the DAM path , which makes it very hard to find in the future. Imagine now that the same high-res image is used in 10 places and, each time, users are uploading from their system: we are now stocking 10 images instead of saving it once in the DAM and referencing it 10 times.
Sharing following article: https://levelup.gitconnected.com/aem-forcing-the-use-of-the-dam-for-images-by-closing-loopholes-b102...
Views
Likes
Replies