Expand my Community achievements bar.

Issue in AEM page editor en.model.json

Avatar

Level 2

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

8 Replies

Avatar

Community Advisor

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

Hi @sravs,

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

Avatar

Community Advisor

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

Avatar

Level 2

Hii, 

 

Like this i am getting all the pages.

file attached

Avatar

Level 2

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

Community Advisor

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

Avatar

Administrator

@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