Experience Fragment export to third party | Community
Skip to main content
March 9, 2022
Solved

Experience Fragment export to third party

  • March 9, 2022
  • 1 reply
  • 1820 views

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?

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 Anish-Sinha

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-experience-fragments/m-p/252237

 

1 reply

Anish-Sinha
Adobe Employee
Anish-SinhaAdobe EmployeeAccepted solution
Adobe Employee
March 9, 2022

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-experience-fragments/m-p/252237

 

March 11, 2022

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