Documentation · updated
How Content Fragments are produced
Some content is really data: articles, authors, products. On AEM that belongs in Content Fragments, not in pages. A reader takes the content types and entries of the old system, and a writer turns them into Content Fragment Models and Content Fragments in one package.
Who does what
| Step | Automatic | Checked by a person | Hand work |
|---|---|---|---|
| Read the old system | WordPress through its public content API, or the export file of Contentful's own tool. | Fields with no equivalent are listed per content type. | An export from inside the system, where the content is not public. |
| Write models and fragments | One model per content type, one fragment per entry, references between them, images. | The package is checked without AEM: models complete, values typed, references resolved. | Nothing. |
| Install and review | Nothing installs itself. | An engineer opens one fragment of each model and compares it with the old entry. | Labels, field order and validation in each model; languages; GraphQL; publishing. |
In plain words
A page is something a visitor opens. A Content Fragment is a record: a title, a date, a body, an author, stored once and used wherever it is needed. A Content Fragment Model is the form that record follows. The generator reads the forms and records of your old system and writes the matching models and fragments for AEM.
Two steps with a neutral description between them
A reader turns the old system's content into a neutral description: content types with typed fields, and entries with values. That description knows nothing about AEM or about any one source. The package writer then turns it into AEM's own structure. A new source system needs only a new reader.
| Source | How it is read | Limits |
|---|---|---|
| WordPress | Its public content API: post types, their entries, categories and tags. No login is used. | Only what WordPress shows to any visitor. The list of users is never requested; an author's name is taken only where WordPress itself puts it in a post. |
| Contentful | The JSON file that Contentful's own export tool writes: content types, entries, assets and locales. No network is used. | One language per run. Rich text becomes HTML; embedded entries with no HTML form are counted as dropped. |
What each kind of field becomes
| In the old system | Field in the Content Fragment Model |
|---|---|
| Short text (title, slug, name) | Single line text |
| Body and other long text | Multi line text, as rich text or plain text |
| Numbers | Number, whole or decimal |
| Yes or no | Boolean |
| Dates | Date and time |
| A fixed list of choices | Enumeration |
| An image or file | Content reference to an asset in the DAM |
| A link to another entry | Fragment reference to that entry's fragment |
| Tags | A list of text. AEM tags need the tag taxonomy created first. |
A field with no equivalent is not dropped silently. The report lists it per content type with what was done.
What is in the package, and what installing it changes
- Content Fragment Models under your configuration folder, one per content type.
- Content Fragments under a DAM folder, one folder per model. Each has its master variation.
- The images and files the fragments point at, where their files were fetched; the rest are in asset-list.csv to upload.
- Beside the zip: a README, a report of every field and every fragment with its old address, and the asset list.
The filter lists each model, each fragment and each file on its own. Installing replaces those and nothing else. Folders and settings that already exist are left as they are, and a second package does not remove the first one's content.
Installed for real
On 13 November 2026 the generator read WordPress.org's public theme demo and the package was installed on a local AEM as a Cloud Service SDK. Checked through AEM's own interfaces afterwards:
| Checked on AEM | Result |
|---|---|
| Content Fragment Models listed as enabled | 5 of 5 |
| Content Fragments present, each pointing at its model | 41 of 41 |
| Field values that read back the same as written | 367 of 367 |
| Images present in the DAM | 14 of 14 |
| Delivery through GraphQL | Not tested |
| Opened in the Content Fragment editor | Not tested |
A demo site and a local SDK on our own machine, not a customer's cloud environment.
What the package does not do
- It writes the master variation only. No other variations, no versions.
- One language. It does not build language copies or translation projects.
- No AEM tags: keywords are carried as text.
- Links and images inside body text still point at the old site.
- It does not publish anything, and it does not create a GraphQL endpoint or persisted queries.
- No workflow state, authors' accounts, comments or history from the old system.
- Validation rules of the old system are not carried over, apart from "required".
- Structured content to AEM Content Fragments: the full page, and how to run it
- Content Fragment generator: run it yourself on a Contentful export or a public WordPress site
- Ask for a run on your content
Questions
Where do I run it?
The Content Fragments page says what you can run yourself today and what our engineers run with you, such as a whole site with its images packed in. No price is listed for a run by our engineers; ask us.
Can it read Drupal or Sitecore content types?
Not from a public site. Those systems do not show their content structure publicly, so they need an export from inside the system and a reader for that export's format.
Should articles be pages or fragments?
If the same article is shown in several places, sent to an app or read through an API, a fragment fits. If it is only ever one web page, a page is simpler. Most sites need both, and that is a decision for your team with an architect.
Where this comes from
Each statement on this page describes code that exists or repeats a page of this site:
- The neutral description (src/aem/fragments/model.ts)
- The readers (src/aem/fragments/wordpress.ts, contentful.ts)
- The package writer and its README (src/aem/fragments/package.ts)
- The recorded run and field table
Surge Migrate is not affiliated with Adobe or with any other vendor named in this documentation. No prices are listed here: see the pricing page and the self-serve prices page, or ask.