Image List Component not showing content | Community
Skip to main content
April 18, 2021
Solved

Image List Component not showing content

  • April 18, 2021
  • 4 replies
  • 2230 views

Hi,

We need a List component that displays the Page thumbnail. I got a suggestion to use this one:

Component:

https://github.com/adobe/aem-guides-wknd/tree/master/ui.apps/src/main/content/jcr_root/apps/wknd/com...

 

Java Interface:

https://github.com/adobe/aem-guides-wknd/blob/master/core/src/main/java/com/adobe/aem/guides/wknd/co...

 

Sling Model:

https://github.com/adobe/aem-guides-wknd/blob/master/core/src/main/java/com/adobe/aem/guides/wknd/co...

 

Even though we added the pages to component, it does not show anything. Neither edit mode(it stays as a placeholder) or wcmmode 

 

We would really appreciate your help on this. Thanks!

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

Hi @ad-engineer 

 

Can you please add some more information here:

  1. If you have implemented everything based on the links you have provided here, it should work as is as it;s wknd implementation and is already working.
  2. Have you made any changes to the exisitng component and it does not work?
  3. What error you are getting when you are adding this component on the page?
  4. Does it allow to edit the content and upon dialog save, you do not see any content?

 

4 replies

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
April 18, 2021

Hi @ad-engineer 

 

Can you please add some more information here:

  1. If you have implemented everything based on the links you have provided here, it should work as is as it;s wknd implementation and is already working.
  2. Have you made any changes to the exisitng component and it does not work?
  3. What error you are getting when you are adding this component on the page?
  4. Does it allow to edit the content and upon dialog save, you do not see any content?

 

April 18, 2021

Hi @asutosh_jena

Thanks for your answer. Yes, I just copied everything, I did not change anything. I am not getting any error. I can edit the dialog, and save it. But, after done it still shows as placeholder on edit mode, and on wcmode it shows nothing. The element container is empty.

Asutosh_Jena_
Community Advisor
Community Advisor
April 18, 2021

@ad-engineer 

Can you please confirm which all fields you are authoring in the dialog.

Also are you trying this on wknd tutorial page?

Are all the bundles active on the system console?

 

Thanks!

April 18, 2021

@asutosh_jena

Please, find attached the component as a sc.

and only these rows do not have active but fragment. All others are active. Thanks!

Asutosh_Jena_
Community Advisor
Community Advisor
April 18, 2021

Hi @ad-engineer 

 

I just tried to reproduce the same and it works perfectly fine for me. Please see the screenshot below:

 

Do you have any content on the page path that you have selected in the dialog i.e. /content/myproject/ch/de/home/content?

If you do not have any content that could be the reason you are not getting anything on the page. Can you try by adding an image content to the page and see it should work. Please try by creating new pages under wknd.

 

Now I added a path which does not have any image content on the page and in dialog it works whereas on the page i see a blank div which is what you are getting. So once you have a page with content it will work as expected.

 

 

 

 

Hope this helps! 🙂

 

Thanks!

April 19, 2021

Hey @asutosh_jena

 

Thank you very much for your help! Still not working. Not sure why. The pages have content. But still not working.😞

Asutosh_Jena_
Community Advisor
Community Advisor
April 19, 2021

Hi @ad-engineer 

 

Did you try to create a new page inside wknd folder and configure an image component within it.

Now use this page path in the image list component and see if it's working or not.

 

Thanks!