adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
733 stars 741 forks source link

[List] Image policy when displaying items as teasers #1714

Open gabrielwalt opened 3 years ago

gabrielwalt commented 3 years ago

When listing the items as teasers, the image policy isn't found.

Possible solution: The virtual teaser image component should have a resource path that inherits from the list component.

(SITES-2047)

jckautzmann commented 3 years ago

Until we fix it in the Core Components, following work-around may be used:

  1. in AEM, create a policy for the Image component by editing the page template. This creates a template policy at e.g. /conf/core-components-examples/settings/wcm/templates/content-page/policies/jcr:content/root/responsivegrid/core-components-examples/components/image
  2. in CRXDE light, copy the policy node above and paste it below the <template-path>/policies/jcr:content node e.g. /conf/core-components-examples/settings/wcm/templates/content-page/policies/jcr:content and rename it cq:featuredimage This will make sure that the Image policy is picked up for the featured image of the page.
bpauli commented 3 years ago

@adobe export issue to Jira project SITES as Bug

github-jira-sync-bot commented 3 years ago

:white_check_mark: Jira issue SITES-2129 is successfully created for this GitHub issue.