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

Using non-EDS site content in EDS site

  • March 4, 2025
  • 2 replies
  • 825 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

konstantyn_diachenko
Community Advisor
konstantyn_diachenkoCommunity AdvisorAccepted solution
Community Advisor
March 4, 2025
Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.
Level 2
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
Community Advisor
Community Advisor
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 Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.
kautuk_sahni
Community Manager
Community Manager
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