I have an object which contains all the list of child pages & grand child pages (object - brought from the sling model class). In the component html page, I want to write the code , which display all the parent and child/grand child pages using the RECURSIVE method.
Solved! Go to Solution.
Views
Replies
Total Likes
Did you check the HTL script provided in https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/when-i-drag-and-drop-a-com...
Thanks!
Did you check the HTL script provided in https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/when-i-drag-and-drop-a-com...
Thanks!
Hi,
I would suggest returning the list of pages from the sling model itself.
Using HTL for this use case could be tricky.
Hi @arunpatidar I am returning the list of pages from the sling model itself but to print the title of my pages everytime I need to fetch from the list and print. So, I want to a fetch the child pages from the object (object - which has list of pages returned from sling)in recursive way even in sightly (Example:- by using data-sly-template)
Views
Replies
Total Likes
Views
Replies
Total Likes