Skip to main content
Level 2
Mar 22, 2024 12:47 PM UTC
Question

Issue in AEM page editor en.model.json

Hi Team,

 

In AEM when i open a page in editor, in en.model.json i am getting all the pages but in editor i need only current page in en.model.json how to fix the issue in AEM react js

AEM cloud

React Based application

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

8 replies

sravs
Community Advisor
Community Advisor
Mar 22, 2024 1:14 PM UTC

@janaki1 , model.json provides all the components available in the page in a JSON format but not the child pages. Please refer below document on the JSON exporter

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/full-stack/components-templates/json-exporter
https://medium.com/@toimrank/aem-sling-model-exporter-90dc872835b9

Translate
janaki1Author
Level 2
Mar 22, 2024 1:24 PM UTC

Hi @sravs,

But in my case i am getting all the child pages in en.model.json because its a react based application. 

Translate
sravs
Community Advisor
Community Advisor
Mar 22, 2024 1:42 PM UTC

Can you please share the URL which you are trying to hit and the json output if possible?

Translate
kautuk_sahni
Level 9
May 16, 2024 12:20 PM UTC

@janaki1 Did you find the suggestions helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Translate
Kautuk Sahni