Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

how to export expereince Fragment JSON to SPA Application

ArunaSurukunta
Level 5
Level 5

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
vanegi
Correct answer by
Employee
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

0 Replies
vanegi
Correct answer by
Employee
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

Arun_Patidar
Community Advisor
Community Advisor

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

ArunaSurukunta
Level 5
Level 5
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?