how to expose content fragment to an edge delivery services project in AEM as a cloud? | Community
Skip to main content
Level 2
August 20, 2024
Solved

how to expose content fragment to an edge delivery services project in AEM as a cloud?

  • August 20, 2024
  • 2 replies
  • 1128 views

Hi,
I want to utilize a Content fragment and use it on one of the blocks in edge delivery services, 
I tried using the Asset API and GraphQL to utilize the content fragment data but the data was accessible only when the URL was of AEM env and it failed on the dispatcher URL provided by the Edge delivery services.

sample URL : https://main--{project-name}--{github-name}.hlx.page/
How can I achieve it on the dispatcher URLs as well, please guide me through the process 

Thank you

Best answer by RiturajSi

I had the similar query, as of now to my knowledge, you can't publish the Content fragments to the edge delivery layer directly , you can only publish the pages using the universal editor. So to use the CF you have to again rely on the AEM server, which you have to call from a block component using graphQl api. Please go through this thread , hope this will give you some pointers.


https://experienceleaguecommunities.adobe.com/t5/edge-delivery-services-questions/how-to-leverage-content-fragment-in-adobe-edge-delivery-with-x/td-p/694475

 

Also to consume graphQl api in EDS with AEM  you can refer Adobe commerce storefront documentation built using EDS will give you good starting point.
https://experienceleague.adobe.com/developer/commerce/storefront/get-started/

2 replies

RiturajSiAccepted solution
Level 2
August 21, 2024

I had the similar query, as of now to my knowledge, you can't publish the Content fragments to the edge delivery layer directly , you can only publish the pages using the universal editor. So to use the CF you have to again rely on the AEM server, which you have to call from a block component using graphQl api. Please go through this thread , hope this will give you some pointers.


https://experienceleaguecommunities.adobe.com/t5/edge-delivery-services-questions/how-to-leverage-content-fragment-in-adobe-edge-delivery-with-x/td-p/694475

 

Also to consume graphQl api in EDS with AEM  you can refer Adobe commerce storefront documentation built using EDS will give you good starting point.
https://experienceleague.adobe.com/developer/commerce/storefront/get-started/

Level 2
May 26, 2025

Hi @riturajsi could you please provide the detail

 

Level 2
May 26, 2025

Hi @rahulda2 could you please confirm how you have achieved it, I have similar requirement.