Hi Everyone,
This is Kamlesh
I want to get data from content fragment and export in JSON format using sling model exporter, can you please help me figure it out this problem.
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @Kamlesh-07
Some OOTB options to explore:
Option-1:
OOTB Content Services would allow to access Content Fragment data by appending .model.json to the CF. Reference: https://experienceleague.adobe.com/docs/experience-manager-65/developing/components/json-exporter.ht...
It essentially works with Content Fragment component. Example: Add CF to a page via Content Fragment component. Then access its data as http://localhost:4502/content/experience-fragments/wknd/language-masters/en/contributors/stacey-rosw...
Option-2: You should try exploring GraphQL to get Json output from Content Fragments. They are pretty powerful.
Hi Kamlesh,
Did you get a chance to go through this link https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/develop-slin...
Thanks,
Monendra
Hello @Kamlesh-07
Some OOTB options to explore:
Option-1:
OOTB Content Services would allow to access Content Fragment data by appending .model.json to the CF. Reference: https://experienceleague.adobe.com/docs/experience-manager-65/developing/components/json-exporter.ht...
It essentially works with Content Fragment component. Example: Add CF to a page via Content Fragment component. Then access its data as http://localhost:4502/content/experience-fragments/wknd/language-masters/en/contributors/stacey-rosw...
Option-2: You should try exploring GraphQL to get Json output from Content Fragments. They are pretty powerful.
Please the documentation link for export the content as JSOn
https://aemtutorials.com/export-content-fragments-in-aem/
Hope this is helpful