Expand my Community achievements bar.

SOLVED

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

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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

Avatar

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.