aem-react-core-wcm-components icon indicating copy to clipboard operation
aem-react-core-wcm-components copied to clipboard

[Download] Title and properties of the image in the download is not displayed in the webpage

Open khn2475 opened this issue 5 years ago • 3 comments
trafficstars

When the download component is configured in the webpage, the title of the image which is uploaded from asset in the download component is not displayed. The image properties such as filename, format and size are not displayed. Title and image properties are rendered in json.

Expected result:

image

After authoring the download component:

image

JSON renditions:

image

khn2475 avatar Nov 09 '20 14:11 khn2475

Similar to [0] it could be that currently the component expects the booleans to be set to true when instantiating the class in JSX. @niekraaijmakers WDYT?

https://github.com/adobe/aem-react-core-wcm-components/blob/master/react-base-components/src/authoring/download/v1/DownloadV1.tsx#L28-L30

[0] https://github.com/adobe/aem-react-core-wcm-components/issues/19#issuecomment-733796439

pfauchere avatar Nov 25 '20 16:11 pfauchere

After discussing with @gabrielwalt , we expect the field to be displayed if the value exists in the JSON object.

pfauchere avatar Nov 26 '20 10:11 pfauchere

Internal reference: CQ-4311375

pfauchere avatar Dec 07 '20 16:12 pfauchere