Content and rich text
Ten content types of the core catalog arrive typed: text, text & media, text & images, image, header, bullets, table, file links, HTML and shortcuts. Each has its own schema, discriminated by CType; bodytext contains HTML only in HTML elements, and a shortcut brings the elements it inserts.
Proofregions.intro[0]
Request GET / #/regions/intro/0 Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"uid": 2045,
"CType": "textmedia",
"header": "Content and rich text",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "Ten content types of the core catalog arrive typed: text, text & media, text & images, image, header, bullets, table, file links, HTML and shortcuts. Each has its own schema, discriminated by "
},
{
"_type": "span",
"_key": "k2",
"marks": [
"code"
],
"text": "CType"
},
{
"_type": "span",
"_key": "k3",
"marks": [],
"text": "; "
},
{
"_type": "span",
"_key": "k4",
"marks": [
"code"
],
"text": "bodytext"
},
{
"_type": "span",
"_key": "k5",
"marks": [],
"text": " contains HTML only in HTML elements, and a shortcut brings the elements it inserts."
}
]
}
],
"assets": [
{
"uid": 2021,
"name": "content.jpg",
"extension": "jpg",
"publicUrl": "/fileadmin/website/plates/content.jpg",
"mimeType": "image/jpeg",
"fileSize": 248813,
"metadata": {
"title": null,
"description": null
}
}
],
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentTextmediaRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "textmedia";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
bodytext?: components["schemas"]["PortableText"];
assets?: components["schemas"]["FileObject"][];
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};
Rich text as Portable Text
Text from the rich text editor becomes Portable Text: blocks of spans with marks. Strong, emphasis, underline, strike-through and code are decorators; links are annotations.
Headings, quotes and lists
A quote stays a block, with the style blockquote.
- Lists nest
- with a level per depth
- and keep their type.
Other markup is reduced to its text. Scripts and styles are dropped.
Proofregions.main[0]
Request GET / #/regions/main/0 Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"uid": 2046,
"CType": "text",
"header": "Rich text as Portable Text",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k1",
"style": "normal",
"markDefs": [
{
"_key": "k0",
"_type": "link",
"href": "https://www.portabletext.org/",
"target": "_blank",
"title": "Portable Text specification"
}
],
"children": [
{
"_type": "span",
"_key": "k2",
"marks": [],
"text": "Text from the rich text editor becomes "
},
{
"_type": "span",
"_key": "k3",
"marks": [
"k0"
],
"text": "Portable Text"
},
{
"_type": "span",
"_key": "k4",
"marks": [],
"text": ": blocks of spans with marks. "
},
{
"_type": "span",
"_key": "k5",
"marks": [
"strong"
],
"text": "Strong"
},
{
"_type": "span",
"_key": "k6",
"marks": [],
"text": ", "
},
{
"_type": "span",
"_key": "k7",
"marks": [
"em"
],
"text": "emphasis"
},
{
"_type": "span",
"_key": "k8",
"marks": [],
"text": ", "
},
{
"_type": "span",
"_key": "k9",
"marks": [
"underline"
],
"text": "underline"
},
{
"_type": "span",
"_key": "k10",
"marks": [],
"text": ", "
},
{
"_type": "span",
"_key": "k11",
"marks": [
"strike-through"
],
"text": "strike-through"
},
{
"_type": "span",
"_key": "k12",
"marks": [],
"text": " and "
},
{
"_type": "span",
"_key": "k13",
"marks": [
"code"
],
"text": "code"
},
{
"_type": "span",
"_key": "k14",
"marks": [],
"text": " are decorators; links are annotations."
}
]
},
{
"_type": "block",
"_key": "k15",
"style": "h3",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k16",
"marks": [],
"text": "Headings, quotes and lists"
}
]
},
{
"_type": "block",
"_key": "k17",
"style": "blockquote",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k18",
"marks": [],
"text": "A quote stays a block, with the style blockquote."
}
]
},
{
"_type": "block",
"_key": "k19",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k20",
"marks": [],
"text": "Lists nest"
}
],
"listItem": "bullet",
"level": 1
},
{
"_type": "block",
"_key": "k21",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k22",
"marks": [],
"text": "with a level per depth"
}
],
"listItem": "bullet",
"level": 2
},
{
"_type": "block",
"_key": "k23",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k24",
"marks": [],
"text": "and keep their type."
}
],
"listItem": "bullet",
"level": 1
},
{
"_type": "block",
"_key": "k25",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k26",
"marks": [],
"text": "Other markup is reduced to its text. Scripts and styles are dropped."
}
]
}
],
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentTextRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "text";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
bodytext?: components["schemas"]["PortableText"];
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};Bullets
- One string per line
- for unordered and ordered lists
- and an object per line for definition lists, below
Proofregions.main[1]
Request GET / #/regions/main/1 Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"uid": 2047,
"CType": "bullets",
"header": "Bullets",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bullets_type": 0,
"bodytext": [
"One string per line",
"for unordered and ordered lists",
"and an object per line for definition lists, below"
],
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentBulletsRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "bullets";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
bullets_type?: number;
bodytext?: components["schemas"]["HeadlessBulletList"];
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};Glossary
- Region
- A column of the backend layout, named by its identifier
- Composed page
- A page with its SEO fields, meta and regions in one response
- Portable Text
- A JSON format for rich text: blocks, spans, marks
- Fallback type
- A content type outside the catalog, sent with uid, CType and header
Proofregions.main[2]
Request GET / #/regions/main/2 Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"uid": 2048,
"CType": "bullets",
"header": "Glossary",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bullets_type": 2,
"bodytext": [
{
"term": "Region",
"definition": "A column of the backend layout, named by its identifier"
},
{
"term": "Composed page",
"definition": "A page with its SEO fields, meta and regions in one response"
},
{
"term": "Portable Text",
"definition": "A JSON format for rich text: blocks, spans, marks"
},
{
"term": "Fallback type",
"definition": "A content type outside the catalog, sent with uid, CType and header"
}
],
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentBulletsRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "bullets";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
bullets_type?: number;
bodytext?: components["schemas"]["HeadlessBulletList"];
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};Body text by type
| CType | bodytext arrives as |
|---|---|
| text, textmedia | Portable Text |
| bullets | a list of strings, or of term and definition |
| table | head, body and foot rows |
| every type | header and header_link besides |
Proofregions.main[3]
Request GET / #/regions/main/3 Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"uid": 2049,
"CType": "table",
"header": "Body text by type",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": {
"head": [
"CType",
"bodytext arrives as"
],
"body": [
[
"text, textmedia",
"Portable Text"
],
[
"bullets",
"a list of strings, or of term and definition"
],
[
"table",
"head, body and foot rows"
]
],
"foot": [
"every type",
"header and header_link besides"
]
},
"table_caption": "The shape of bodytext per content type",
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": "",
"table_header_position": 1
}Generated TypeScript type
type HeadlessContentTableRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "table";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
bodytext?: components["schemas"]["HeadlessTable"];
table_caption?: string | null;
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
table_header_position?: number;
};Images

Proofregions.main[4]
Request GET / #/regions/main/4 Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"uid": 2050,
"CType": "image",
"header": "Images",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"image": [
{
"uid": 2000,
"name": "proof-sheet.jpg",
"extension": "jpg",
"publicUrl": "/fileadmin/website/proof-sheet.jpg",
"mimeType": "image/jpeg",
"fileSize": 109399,
"metadata": {
"title": null,
"alternative": "Proof sheets on cyan, yellow, magenta and white paper, printed with colour blocks and halftone fields, fanned out on a light table, one lifted to show a ruled grid underneath",
"description": null,
"copyright": null
},
"cropVariants": {}
},
{
"uid": 2010,
"name": "diagram.svg",
"extension": "svg",
"publicUrl": "/fileadmin/website/diagram.svg",
"mimeType": "image/svg+xml",
"fileSize": 203,
"metadata": {
"title": null,
"alternative": "A simple diagram: two crossing lines",
"description": null,
"copyright": null
},
"cropVariants": {}
}
],
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentImageRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "image";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
image?: components["schemas"]["FileObject"][];
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};File links
- cheat-sheet.txt1 KBEvery request of the extension on one page
Proofregions.main[5]
Request GET / #/regions/main/5 Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"uid": 2051,
"CType": "uploads",
"header": "File links",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"media": [
{
"uid": 2026,
"name": "cheat-sheet.txt",
"extension": "txt",
"publicUrl": "/fileadmin/website/cheat-sheet.txt",
"mimeType": "text/plain",
"fileSize": 632,
"metadata": {
"title": null,
"description": "Every request of the extension on one page"
}
}
],
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentUploadsRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "uploads";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
media?: components["schemas"]["FileObject"][];
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};Types outside the catalog
Other content types are left out, unless the site lists them in fallbackCTypes. Then they arrive with uid, CType and header only, typed as HeadlessContentFallbackRead. Kettenblatt allows menu_subpages; the page menu on its Visit page below is one.
Proofregions.main[6]
Request GET / #/regions/main/6 Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"uid": 2052,
"CType": "text",
"header": "Types outside the catalog",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "Other content types are left out, unless the site lists them in "
},
{
"_type": "span",
"_key": "k2",
"marks": [
"code"
],
"text": "fallbackCTypes"
},
{
"_type": "span",
"_key": "k3",
"marks": [],
"text": ". Then they arrive with "
},
{
"_type": "span",
"_key": "k4",
"marks": [
"code"
],
"text": "uid"
},
{
"_type": "span",
"_key": "k5",
"marks": [],
"text": ", "
},
{
"_type": "span",
"_key": "k6",
"marks": [
"code"
],
"text": "CType"
},
{
"_type": "span",
"_key": "k7",
"marks": [],
"text": " and "
},
{
"_type": "span",
"_key": "k8",
"marks": [
"code"
],
"text": "header"
},
{
"_type": "span",
"_key": "k9",
"marks": [],
"text": " only, typed as "
},
{
"_type": "span",
"_key": "k10",
"marks": [
"code"
],
"text": "HeadlessContentFallbackRead"
},
{
"_type": "span",
"_key": "k11",
"marks": [],
"text": ". Kettenblatt allows "
},
{
"_type": "span",
"_key": "k12",
"marks": [
"code"
],
"text": "menu_subpages"
},
{
"_type": "span",
"_key": "k13",
"marks": [],
"text": "; the page menu on its Visit page below is one."
}
]
}
],
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentTextRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "text";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
bodytext?: components["schemas"]["PortableText"];
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};

