AEM | Community
Skip to main content
Level 2
Oct 14, 2018 7:57 AM UTC
Solved

AEM

Hi i have a question. need a solution asap

  • create a drag and drop component where author can select the page path: (a)-it should display all child pages level by level(child pages should be shown recursively)??
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 14, 2018 10:33 AM UTC

Hi,

It can be done with the help of sightly template.

1. Create WCMUsePojo class to return child page list for given page.

2. Create HTL template to loop through for child page

3. Create list and call above template to get child list.

4. Inside template again call Java class to get child page list of child page

This will create recursive list.

E.g. if my input is /content/AEM63App

Arun Patidar

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Oct 14, 2018 10:33 AM UTC

Hi,

It can be done with the help of sightly template.

1. Create WCMUsePojo class to return child page list for given page.

2. Create HTL template to loop through for child page

3. Create list and call above template to get child list.

4. Inside template again call Java class to get child page list of child page

This will create recursive list.

E.g. if my input is /content/AEM63App

Translate
Arun Patidar