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

[List] Last modified date and show description about the page is not displayed in the list.

Open khn2475 opened this issue 5 years ago • 3 comments

I configured the List react core component and checked show description and show date. When it is checked, it is supposed to show the description and last modified date of pages listed in list component. In List react core component, show description and last modified date is not displayed on the page but it is rendered in json.

Expected result:

image

After configuring the list component in my local:

image

JSON rendition:

image

khn2475 avatar Nov 09 '20 14:11 khn2475

@niekraaijmakers, is it that currently the component expects the booleans to be set to true when instantiating the class in JSX?

https://github.com/adobe/aem-react-core-wcm-components/blob/master/react-base-components/src/authoring/list/v2/ListV2.tsx#L40-L41

Should the expectation of the implementation be that if the field is populated it gets rendered?

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-4311378

pfauchere avatar Dec 07 '20 16:12 pfauchere