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
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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/dev...
- https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/headless/apis-he...
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/securit...
Best regards,
Kostiantyn 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/dev...
- https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/headless/apis-he...
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/securit...
Best regards,
Kostiantyn Diachenko.
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
Views
Replies
Total Likes
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.
I have one more query, is there a way to fetch content from traditional AEM site which is in cloud. can we get content through GraphQL or API?
Is there a way to use content from traditional AEM site which is in cloud in Edge delivery site?
Views
Replies
Total Likes
Yes, as you mentioned, you can use GraphQL, Sling Exporters API, Asset HTTP API etc.
@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!
Views
Replies
Total Likes
Views
Likes
Replies