Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Issue in AEM page editor en.model.json

Avatar

Level 1

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

7 Replies

Avatar

Level 5

@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/dev...
https://medium.com/@toimrank/aem-sling-model-exporter-90dc872835b9

Avatar

Level 1

Hi @sravs,

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

Avatar

Level 5

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

Avatar

Level 1

Hii, 

 

Like this i am getting all the pages.

file attached

Avatar

Level 1

Hi @sravs,

 

If i change at template level the change which i have made will change in publish mode as well. But i need to change only in page editor mode.

 

When  i am trying to edit my aem page in en.model.json i need only single instead of getting all the pages in editor mode i need only that (single) page to be called in en.model.json.

Avatar

Level 5

@janaki1 , you need to override/extend the out of the box functionality to achieve this customization.