One issue in image component | Community
Skip to main content
November 29, 2021
Solved

One issue in image component

  • November 29, 2021
  • 1 reply
  • 645 views

I have used image(core/wcm/components/image/v2/image) resource type and copy pasted cq:dialog

 

But writing after writing HTL

<h1>Banner</h1>

<img src="${properties.fileReferenceBanner}" width="500" height="600">

 

<h1>Interstetial</h1>

<img src="${properties.fileReferenceInterstetial}">

 

Images those are present in dam are only getting populated.... There is one button browse which open local directoryy after adding the file I am not getting any output what changes should I make to HTL

 

 

In future I will also write modal class... Please also suggest changes to be made their as well

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by B_Sravan

Incase, if you are not overwriting the image.html, your HTL script should include the image markup <div class="cmp-image" data-sly-include="image.html"></div> so that it uses the image rendering servlet.

 

for more details on extending please refer this URL: https://github.com/adobe/aem-core-wcm-components/tree/master/content/src/content/jcr_root/apps/core/wcm/components/image/v2/image 

 

1 reply

B_Sravan
Community Advisor
B_SravanCommunity AdvisorAccepted solution
Community Advisor
November 30, 2021

Incase, if you are not overwriting the image.html, your HTL script should include the image markup <div class="cmp-image" data-sly-include="image.html"></div> so that it uses the image rendering servlet.

 

for more details on extending please refer this URL: https://github.com/adobe/aem-core-wcm-components/tree/master/content/src/content/jcr_root/apps/core/wcm/components/image/v2/image