Headless Content Delivery using Content Fragments with GraphQL

With Content Fragments and the GraphQL API you can use Adobe Experience Manager (AEM) as a Cloud Service as a Headless Content Management System (CMS).

This is achieved using Content Fragments, together with the AEM GraphQL API (a customized implementation, based on standard GraphQL), to headlessly deliver structured content for use in your applications. The ability to customize a single API query allows you to retrieve and deliver the specific content that you want/need to render (as the response to the single API query).

注意
注意

GraphQL 当前用于 Adobe Experience Manager (AEM) as a Cloud Service 中的两种(分隔的)场景:

Headless CMS

A Headless Content Management System (CMS) is:

​* **

🔗

In terms of authoring Content Fragments in AEM this means that:

  • You can use Content Fragments to author content that is not primarily intended to be directly published (1:1) on formatted pages.

  • The content of your Content Fragments will be structured in a predetermined manner - according to the Content Fragment Models. This simplifies access for your applications, which will further process your content.

GraphQL - An Overview

GraphQL 是:

​* **

请参阅 GraphQL.org

🔗 🔗The content returned can then be used by your applications.

AEM GraphQL API

For Adobe Experience as a Cloud Experience, a customized implementation of the standard GraphQL API has been developed. 🔗

🔗

Content Fragments for use with the AEM GraphQL API

🔗

  • They enable you to design, create, curate and publish page-independent content.
  • 🔗
  • 🔗

内容片段

内容片段:

  • Contain structured content.

  • 🔗

内容片段模型

🔗

  • 🔗

  • Provide the data types and fields required for GraphQL. They ensure that your application only requests what is possible, and receives what is expected.

  • 🔗

Fragment References

🔗

  • Is of particular interest in conjunction with GraphQL.

  • Is a specific data type that can be used when defining a Content Fragment Model.

  • References another fragment, dependent on a specific Content Fragment Model.

  • Allows you to retrieve structured data.

JSON 预览

🔗

了解如何将 GraphQL 与 AEM 结合使用 - 示例内容和查询

🔗

教程 - AEM Headless 和 GraphQL 快速入门

正在寻找实践教程?请查看 AEM Headless 和 GraphQL 快速入门端到端教程,其中说明了在 Headless CMS 场景中,如何使用 AEM GraphQL API 构建和公开内容并由外部应用程序使用。

在此页面上