Structured content to AEM Content Fragments · updated 13 November 2026

Moving structured content to AEM Content Fragments

Articles, authors, products and other content that is really data should not become pages. This generator reads the content types and entries of the old system. It writes AEM Content Fragment Models and Content Fragments, with their images, as one content package. You check it, then install it with Package Manager.

You can run the generator yourself on the Content Fragment generator page, from a Contentful export or a public WordPress site. Packages made there hold no images; our engineers can run it for you with the images included.

Sources

Where the structure is read from

SystemHow it is read
WordPressIts public REST API: post types, posts, pages, custom post types, categories and tags. No login. The reader never asks for the user list.
ContentfulThe export file Contentful's own tool writes (content types and entries). Rich text documents become HTML. One language per run.

The mapping

What each kind of field becomes

In the old systemField in the Content Fragment Model
Short text (title, slug, name)Single line text
Body and other long textMulti line text, as rich text or plain text
NumbersNumber (whole or decimal)
Yes or noBoolean
DatesDate and time
A fixed list of choices (status, format)Enumeration
An image or fileContent reference to an asset in the DAM
A link to another entry (category, author)Fragment reference to that entry's fragment
TagsA list of text. AEM tags need the tag taxonomy created first.

A field with no equivalent is kept as text and listed in the report, per content type, so nothing disappears without a note.

Proof

A WordPress demo site, installed on AEM

We read 2024.wordpress.net, WordPress.org's public theme demo, through its public REST API (22 requests in all, images included, with pauses). The package held 107 files. After installing it on a local AEM as a Cloud Service SDK (2025.4.20476):

Checked on AEMResult
Content Fragment Models listed as enabled, with every field and its type5 of 5
Content Fragments present, each pointing at its model41 of 41
Field values that read back the same as written367 of 367
Images present in the DAM14 of 14
First package's content after a second package was installedunchanged
Delivery through GraphQLnot tested
Opened in the Content Fragment editornot tested

A demo site and a local SDK on our own machine, not a customer's cloud environment.

Hand work

What the package does not do

Not coveredWhy
Other variations and versionsEach fragment gets its master variation only.
More than one languageOne language per run. Language copies are a separate run and a folder decision.
Links and images inside body textThey still point at the old site. Rewriting them is part of the page move.
GraphQL endpoints and persisted queriesNot created by the package, and not tested by us. They are set up per project.
PublishingThe package installs on author. Publishing is your decision.
Custom fields that the source does not exposeWordPress shows only what its public API shows. Fields kept private need an export from inside the system.

Questions

Common questions

What is a Content Fragment, in one line?

Structured content in AEM, such as an article or a product, stored once and used on pages, in apps or through an API. A Content Fragment Model defines its fields.

Has this been installed on a real AEM?

Yes. On 13 November 2026 we read WordPress.org's public theme demo (2024.wordpress.net), built the package and installed it on a local AEM as a Cloud Service SDK (2025.4.20476). AEM then listed 5 of 5 models as enabled and 41 of 41 fragments with the right model, and 367 of 367 field values read back the same. It is a local SDK and a demo site, not a customer's environment.

What was not tested?

Delivery through GraphQL, and opening the fragments in the Content Fragment editor. The check used AEM's own HTTP interfaces for models and fragments and the stored content.

Does installing it remove anything?

No. The package lists each model, fragment and image by its own path. Folders and settings that already exist are left as they are, and a second package does not remove the first one's content.

Can I use it for Drupal, Sitecore or another system?

Not yet from a public site. Those systems do not expose their content structure publicly, so they need an export from inside the system. The generator takes a neutral description of content types and entries, so a reader for another export format is a small addition.

How does this fit with moving pages?

Pages become Core Component pages or Edge Delivery documents. Content that is really data, such as articles, authors, products or locations, is better moved as Content Fragments. Most sites need both.

Surge Migrate is not affiliated with Adobe, WordPress or Contentful.

Surge Migrate

Moving the whole site? Scan, convert, verify, install

Content Fragments carry the structured content. For the pages, Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →