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

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
Level 10

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

2 Replies

Avatar

Correct answer by
Level 10

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-s 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