Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

:children object not showing in <root-page>.model.json

raviranjan
Level 2
Level 2

I have aem 6.5 + react spa project . I have several child pages under /en/ page, but when I am trying to load /content/<project>/en.model.json  ,I am unable to get :children object in the json . What can be the issue here?

1 Accepted Solution
Umesh_Thakur
Correct answer by
Community Advisor
Community Advisor

Hi @raviranjan,

It seems there is confusion in understanding, page_name.model.json is not giving any details about the child pages but it provide the details about the authored components and its data on the page.

For child pages details you need to use any other mechanisms like servlet an all.

See the below article for the purpose:

https://experienceleague.adobe.com/docs/experience-manager-64/developing/components/json-exporter.ht...

Hope this will help.

Umesh Thakur

View solution in original post

2 Replies
Umesh_Thakur
Correct answer by
Community Advisor
Community Advisor

Hi @raviranjan,

It seems there is confusion in understanding, page_name.model.json is not giving any details about the child pages but it provide the details about the authored components and its data on the page.

For child pages details you need to use any other mechanisms like servlet an all.

See the below article for the purpose:

https://experienceleague.adobe.com/docs/experience-manager-64/developing/components/json-exporter.ht...

Hope this will help.

Umesh Thakur

View solution in original post

Vijayalakshmi_S
Community Advisor
Community Advisor

Hi @raviranjan,

Can you let know the SPA Project core version you are using. 

Also, cross check if Adobe CQ JSON Exporter bundle is active and your SPA project code base is importing the same(As evident from Imported Packages section of your SPA project bundle) and resolved correctly to it. 

 

To be specific, this method from HierarchyNodeExporter - https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/co...

is responsible for :children in root page model response of SPA project/page created using SPA root page template.