Adobe-Marketing-Cloud / aem-guides-wknd-events

Step by Step guide to creating a Single Page Application to use with AEM
48 stars 34 forks source link

HierarchyPage Sling Model #78

Open psaksena opened 4 years ago

psaksena commented 4 years ago

Local Environment Before filing an issue, verify that the prerequisite tools/software are installed:

Describe the issue On changing the "structureDepth" property value to 1 in "/conf/wknd-events/settings/wcm/policies/wknd-events/components/structure/app/default", I get child pages only one level down.

Now if I want to retrieve further child pages of previous child pages, how can i do that.

eg:

Root . Home . Articles

Article 1 Article 2 Article 3

On changing depth to 1, i am able to retrieve Home and Articles. Now if i want to get Article 1, Article 2 all in one json, how can i do that?

godanny86 commented 4 years ago

hi @psaksena if you increase the structureDepth property to a value of 2 or 3 then the HiearchyPage impl will collect more child pages.