:children object not showing in <root-page>.model.json | Adobe Higher Education
Skip to main content
Level 2
August 2, 2021
Beantwoord

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

  • August 2, 2021
  • 2 reacties
  • 1080 Bekeken

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?

Er kunnen geen reacties meer worden geplaatst op dit onderwerp.
Beste antwoord door Umesh_Thakur

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.html?lang=en

Hope this will help.

Umesh Thakur

2 reacties

Umesh_Thakur
Community Advisor
Umesh_ThakurCommunity AdvisorAntwoord
Community Advisor
August 2, 2021

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.html?lang=en

Hope this will help.

Umesh Thakur

Vijayalakshmi_S
Level 10
August 3, 2021

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/com/adobe/cq/export/json/hierarchy/HierarchyNodeExporter.html#getExportedChildren--

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