Issue in AEM page editor en.model.json | Community
Skip to main content
Level 2
March 22, 2024
Question

Issue in AEM page editor en.model.json

  • March 22, 2024
  • 2 replies
  • 1561 views

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.

2 replies

sravs
Community Advisor
Community Advisor
March 22, 2024

@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

janaki1Author
Level 2
March 22, 2024

Hi @sravs,

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

janaki1Author
Level 2
March 25, 2024

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


Hii, 

 

Like this i am getting all the pages.

file attached

kautuk_sahni
Community Manager
Community Manager
May 16, 2024

@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.

Kautuk Sahni