Core Component List "Display as teaser " option on 2nd Tab is not working. | Community
Skip to main content
Level 2
November 8, 2022
Solved

Core Component List "Display as teaser " option on 2nd Tab is not working.

  • November 8, 2022
  • 2 replies
  • 1552 views

Hi All,

I have a list component on a page where I have authored Parent Page and Child depth 1. Under parent page, I have created 2 pages and authored teaser and image component on these 2 child pages. When I choose link items, show description and show date its coming as expected. But when I choose "Display as teaser" option shown below. I am getting null OR nothing is shown for the list component.

 

Can anybody please help me to make it work? 

My investigation: See the list.html file.

The below code: 

<li data-sly-test="${list.displayItemAsTeaser && item.teaserResource}"
class="cmp-list__item" data-sly-call="${teaserTemplate.teaser @ item = item}"
data-cmp-data-layer="${item.data.json}"></li>

This is the code for "display as teaser" option. Here list.displayItemAsTeaser is true but item.teaserResource is always null. I tried to print this value but nothing came up. How can I get  item.teaserResource here. Any pointers are appreciated? 

 

Thanks

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

2 replies

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
November 8, 2022
September 21, 2024

Hi @maans 

is display as teaser issue is solved out? if yes, I am also facing same issue with display as teaser in list core component please help me out where do done the changes in list core component.

February 20, 2023

Hey @maans ,

Not sure if you have figured it out already, but adding this for others who face the same issue.

In the list component, example /apps/<<project-name>>/components/list set the teaserDelegate value to core/wcm/components/teaser/v2/teaser and this should fix it.