Expand my Community achievements bar.

SOLVED

how to export expereince Fragment JSON to SPA Application

Avatar

Community Advisor

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?

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @An,

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

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

 

Thanks!!

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

Hi @An,

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

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

 

Thanks!!

Avatar

Community Advisor

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



Arun Patidar

Avatar

Community Advisor
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?