Display the complete page hierarchy | Community
Skip to main content
Avinash_Gupta_
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 2, 2022
Solved

Display the complete page hierarchy

  • November 2, 2022
  • 2 replies
  • 1662 views

Hello Everyone,

 

There is a use case to display the entire site hierarchy for example how it's appearing on this site https://www.ingredion.com/na/en-us/sitemap.html . Existing core list component display all the child pages but it won't maintains the hierarchical order. I have extended this component but struggling with the logic to display the site structure. Would you please help me on that.

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 Jagadeesh_Prakash

@avinash_gupta_ If you don't want to use ACS-commons still u can use the servlet code to achieve this using a servlet. Refer to below link 

 

https://aemsimplifiedbynikhil.wordpress.com/2021/12/01/extending-the-apache-sling-sitemap-generator-for-aem-6-5-11-and-aemaacs/

 

After the sitemap is generated you can use the xml to generate your HTML structure look and feel 

 

2 replies

krati_garg
Adobe Employee
Adobe Employee
November 2, 2022

@avinash_gupta_ 

Please explore Apache Sling SiteMap Scheduler and Generator provisioned with AEM. Below is the video tutorial for the same:

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/seo/sitemaps.html?lang=en

 

Jagadeesh_Prakash
Community Advisor
Community Advisor
November 2, 2022
Avinash_Gupta_
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 2, 2022

Thanks @jagadeesh_prakash for replying on my post but in our project we are not using acs-commons and don’t want to generate the sitemap. How can we achieve it using using sling models?

Jagadeesh_Prakash
Community Advisor
Jagadeesh_PrakashCommunity AdvisorAccepted solution
Community Advisor
November 2, 2022

@avinash_gupta_ If you don't want to use ACS-commons still u can use the servlet code to achieve this using a servlet. Refer to below link 

 

https://aemsimplifiedbynikhil.wordpress.com/2021/12/01/extending-the-apache-sling-sitemap-generator-for-aem-6-5-11-and-aemaacs/

 

After the sitemap is generated you can use the xml to generate your HTML structure look and feel