how to export expereince Fragment JSON to SPA Application | Community
Skip to main content
Anny0505
Community Advisor
Community Advisor
August 3, 2020
Solved

how to export expereince Fragment JSON to SPA Application

  • August 3, 2020
  • 2 replies
  • 1086 views

Hi All,

 

I am using AEM 6.5 with SPA react application. I have created all my components with component exporter and I want to use some exeperence fragments in the application where FE application can read and access XF JSON.

Could you please help is it possible to export XF json to any other webapp similar to content fragment?

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

Hi @530695,

This looks similar to that raised in thread [0] AEM 6.4 with SPA Editor - how to use the experience fragments? There is an approach mentioned for AEM 6.5 which can be used for XF where SPA app consumes JSON which is provided by content services (Sling Model Exporter) [1].

 

[0]: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-4-with-spa-editor-how-to-use-the-experience-fragments/qaq-p/322742

[1]: https://docs.adobe.com/content/help/en/experience-manager-learn/foundation/development/develop-sling-model-exporter.html

 

Thanks!!

2 replies

vanegi
Adobe Employee
vanegiAdobe EmployeeAccepted solution
Adobe Employee
August 4, 2020

Hi @530695,

This looks similar to that raised in thread [0] AEM 6.4 with SPA Editor - how to use the experience fragments? There is an approach mentioned for AEM 6.5 which can be used for XF where SPA app consumes JSON which is provided by content services (Sling Model Exporter) [1].

 

[0]: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-4-with-spa-editor-how-to-use-the-experience-fragments/qaq-p/322742

[1]: https://docs.adobe.com/content/help/en/experience-manager-learn/foundation/development/develop-sling-model-exporter.html

 

Thanks!!

arunpatidar
Community Advisor
Community Advisor
August 4, 2020

I think if you access XF using model selector with json then you can export.

Arun Patidar
Anny0505
Community Advisor
Anny0505Community AdvisorAuthor
Community Advisor
August 4, 2020
Yes. If add model.json i can see the json for expereince fragment. how to access this json at react SPA application. Do I need to customize react component as mentioned above post?