Using non-EDS site content in EDS site | Community
Skip to main content
New Participant
March 4, 2025
Solved

Using non-EDS site content in EDS site

  • March 4, 2025
  • 2 replies
  • 819 views

Hi,

 

I have an AEM headless site in AEM cloud, is it posisble to use that content in EDS site ?

I have tried AEM cloud authoring for EDS and Document based authoring and works as expected, and able to use same codebase for both approaches, but i want to use existing AEM non-EDS site content in EDS website, is it possible ?

 

and also is there any documentation on using Content fragments in EDS site ?

 

 

Thanks,

Parvathi

 

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 konstantyn_diachenko

Hi @parvathiso1 ,

 

Yes, you can use Content Fragment from non-EDS site on EDS. You can find these APIs here: https://developer.adobe.com/experience-cloud/experience-manager-apis/api/stable/sites/ . More documentations:

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/open-api-based-apis 
https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/headless/apis-headless-and-content-fragments

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/headless/aem-rest-openapi-content-fragment-delivery

 

These APIs requires authorization (token), that you can't persist in EDS code base. That's why you will need to build a middleware between EDS and non-EDS site (Open API) to authorize requests to API.  https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/headless/security/authentication#retrieving-access-token 

 

Best regards,

Kostiantyn Diachenko. 

 

 

2 replies

kautuk_sahni
Employee
March 5, 2025

@parvathiso1 Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
konstantyn_diachenko
konstantyn_diachenkoAccepted solution
New Participant
March 4, 2025
Kostiantyn DiachenkoCheck out AEM VLT Intellij plugin
New Participant
March 5, 2025

Hi, 

 

>>These APIs requires authorization (token), that you can't persist in EDS code base.

 

why? we cannot directly call GraphQL in EDS code base(In JS file) ?

like below

Web component/JS - AEM Headless Example | Adobe Experience Manager

 

Do we have any document for middleware reference.

 

Thanks,

Parvathi

konstantyn_diachenko
New Participant
March 5, 2025

I checked that example and saw credentials to connect to local author there as well. However, you are right, the GraphQL is publicly open endpoint on publisher. So, you can easily use it.

 

Thanks,

Kostiantyn Diachenko.

Kostiantyn DiachenkoCheck out AEM VLT Intellij plugin