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

Page List displays description on Teaser items when toggled off

Open HitmanInWis opened this issue 1 year ago • 0 comments

Bug present as of version: 2.24.7-SNAPSHOT

When "Display as teaser" is toggled on for a page List component, the Description is shown on the teaser tile regardless of whether "Show description" is toggled on.

To fix this, something like the following logic needs to be added to com.aemgo.core.models.entities.impl.PageListItemImpl#getTeaserResource

                if (showDescription) {
                    overriddenProperties.put(Teaser.PN_DESCRIPTION_FROM_PAGE, true);
                } else {
                    hiddenProperties.add(JcrConstants.JCR_DESCRIPTION);
                    overriddenProperties.put(Teaser.PN_DESCRIPTION_FROM_PAGE, false);
                }

HitmanInWis avatar May 28 '24 21:05 HitmanInWis