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.
Solved! Go to Solution.
Views
Replies
Total Likes
@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
After the sitemap is generated you can use the xml to generate your HTML structure look and feel
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
@Avinash_Gupta_ you can use ACS commons sitemap generator and make an API call to sitemap.xml and parse the XML response to display the site structure in html.
https://adobe-consulting-services.github.io/acs-aem-commons/features/sitemap/index.html
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?
@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
After the sitemap is generated you can use the xml to generate your HTML structure look and feel
@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
After the sitemap is generated you can use the xml to generate your HTML structure look and feel