Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Experience Fragment export to third party

Avatar

Level 1

How can I display AEM experience fragment in other sites like (ex: Hybris) including .css and .js. How can I render Experience Fragment and show it in Hybris page?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @prem_nagarjuna ,

Experience Fragment stores the content as html/text like a normal site page.

You can export content as a json to any 3rd party. You have to export content as JSON using Jackson Annotation.

http://sgaem.blogspot.com/2017/06/sling-model-exporter-in-aem-63.html

Check this thread as well: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-consume-aem-experie...

 

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

Hi @prem_nagarjuna ,

Experience Fragment stores the content as html/text like a normal site page.

You can export content as a json to any 3rd party. You have to export content as JSON using Jackson Annotation.

http://sgaem.blogspot.com/2017/06/sling-model-exporter-in-aem-63.html

Check this thread as well: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-consume-aem-experie...

 

Avatar

Level 1

Thanks @Anish-Sinha for the response. 
With the above approach as far as I know only html can be exported, but can I also export .css and .js along with the html with this approach. If any other scenario could you please help.

 

Thanks