Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 1

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-co...

 

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/

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

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-co...

 

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/