Translations
Content follows the fallbackType of the site language. This site's German is strict, Kettenblatt's German is free. Pages keep the uid of the default language, so a frontend links its languages by uid; content element uids depend on the mode.
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": 2074,
"CType": "textmedia",
"header": "Translations",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "Content follows the "
},
{
"_type": "span",
"_key": "k2",
"marks": [
"code"
],
"text": "fallbackType"
},
{
"_type": "span",
"_key": "k3",
"marks": [],
"text": " of the site language. This site's German is "
},
{
"_type": "span",
"_key": "k4",
"marks": [
"em"
],
"text": "strict"
},
{
"_type": "span",
"_key": "k5",
"marks": [],
"text": ", Kettenblatt's German is "
},
{
"_type": "span",
"_key": "k6",
"marks": [
"em"
],
"text": "free"
},
{
"_type": "span",
"_key": "k7",
"marks": [],
"text": ". Pages keep the uid of the default language, so a frontend links its languages by uid; content element uids depend on the mode."
}
]
}
],
"assets": [
{
"uid": 2024,
"name": "translations.jpg",
"extension": "jpg",
"publicUrl": "/fileadmin/website/plates/translations.jpg",
"mimeType": "image/jpeg",
"fileSize": 156553,
"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;
};
Strict and fallback
The page brings the content elements of the default language with their translations. strict leaves out what is not translated, fallback keeps it in the default language. The Colophon of this site exists in English only, so the German lookup finds nothing:
GET /de/_api/headless_pages?path=/colophon Response 200GET /website/de/_api/headless_pages?path=/colophon
Request GET / Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
"@type": "hydra:Collection",
"@id": "/_api/headless_pages",
"hydra:totalItems": 0,
"hydra:member": [],
"hydra:view": {
"@type": "hydra:PartialCollectionView",
"hydra:first": "/_api/headless_pages?path=%2Fcolophon&page=1",
"hydra:last": "/_api/headless_pages?path=%2Fcolophon&page=0",
"hydra:previous": null,
"hydra:next": null
}
}Generated TypeScript type
type HeadlessPagesCollection = {
"@context"?: string;
"@type"?: string;
"@id"?: string;
"hydra:totalItems"?: number;
"hydra:member"?: components["schemas"]["HeadlessPagesLookup"][];
"hydra:view"?: {
"@type"?: string;
"hydra:first"?: string;
"hydra:last"?: string;
"hydra:previous"?: string | null;
"hydra:next"?: string | null;
};
"hydra:search"?: {
"@type"?: string;
"hydra:template"?: string;
"hydra:variableRepresentation"?: string;
"hydra:mapping"?: {
"@type"?: string;
variable?: string;
property?: string;
required?: boolean;
}[];
};
redirect?: components["schemas"]["HeadlessPagesRedirect"];
};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": 2075,
"CType": "text",
"header": "Strict and fallback",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "The page brings the content elements of the default language with their translations. "
},
{
"_type": "span",
"_key": "k2",
"marks": [
"em"
],
"text": "strict"
},
{
"_type": "span",
"_key": "k3",
"marks": [],
"text": " leaves out what is not translated, "
},
{
"_type": "span",
"_key": "k4",
"marks": [
"em"
],
"text": "fallback"
},
{
"_type": "span",
"_key": "k5",
"marks": [],
"text": " keeps it in the default language. The Colophon of this site exists in English only, so the German lookup finds nothing:"
}
]
},
{
"_type": "block",
"_key": "k6",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k7",
"marks": [
"code"
],
"text": "GET /de/_api/headless_pages?path=/colophon"
}
]
}
],
"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;
};Free mode
In free mode a language has content elements of its own, in its own order, translated or not, each with its own uid. Kettenblatt's German home page opens with a seasonal note that doesn't exist in English:
GET https://kettenblatt.example/de/_api/headless_pages/3000 Response 200GET /kettenblatt/de/_api/headless_pages/3000
Request GET / Status 200
Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response
JSON response
{
"@type": "HeadlessPages",
"@id": "/_api/headless_pages/3000",
"uid": 3000,
"title": "Kettenblatt",
"slug": "/",
"seo_title": "",
"description": "Eine kleine Fahrradwerkstatt für Stadt-, Gravel- und Lastenräder. Erfunden.",
"no_index": 0,
"no_follow": 0,
"canonical_link": null,
"og_title": "",
"og_description": null,
"og_image": [
{
"uid": 3000,
"name": "city-bike-on-stand.jpg",
"extension": "jpg",
"publicUrl": "https://typo3.example/fileadmin/_processed_/6/4/csm_city-bike-on-stand_e56353216f.jpg",
"mimeType": "image/jpeg",
"fileSize": 238434,
"metadata": {
"title": null,
"alternative": "Ein grünes Stadtrad mit Korb im Montageständer, Werkzeug auf der Bank",
"description": null,
"copyright": null
},
"width": 1536,
"height": 806
}
],
"breadcrumbs": [
{
"uid": 3000,
"title": "Kettenblatt",
"nav_title": "",
"url": "https://typo3.example/kettenblatt/de/",
"doktype": 1
}
],
"languages": [
{
"languageId": 0,
"locale": "en-US",
"hreflang": "en",
"title": "English",
"url": "https://typo3.example/kettenblatt/",
"available": true,
"active": false
},
{
"languageId": 1,
"locale": "de-DE",
"hreflang": "de",
"title": "German",
"url": "https://typo3.example/kettenblatt/de/",
"available": true,
"active": true
}
],
"meta": {
"robots": "index,follow",
"canonical": "https://typo3.example/kettenblatt/de/",
"schema": {
"@context": "https://schema.org",
"@type": "WebPage",
"url": "https://typo3.example/kettenblatt/de/",
"name": "Kettenblatt",
"inLanguage": "de",
"description": "Eine kleine Fahrradwerkstatt für Stadt-, Gravel- und Lastenräder. Erfunden."
},
"alternates": [
{
"hreflang": "en",
"href": "https://typo3.example/kettenblatt/"
},
{
"hreflang": "de",
"href": "https://typo3.example/kettenblatt/de/"
},
{
"hreflang": "x-default",
"href": "https://typo3.example/kettenblatt/"
}
]
},
"regions": {
"main": [/* 4 elements */]
}
}Generated TypeScript type
type HeadlessPagesRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
title?: string;
slug?: string | null;
seo_title?: string;
description?: string | null;
no_index?: number;
no_follow?: number;
canonical_link?: components["schemas"]["HeadlessLink"] | null;
og_title?: string;
og_description?: string | null;
og_image?: components["schemas"]["FileObject"][];
breadcrumbs: components["schemas"]["HeadlessPagesBreadcrumb"][];
languages: components["schemas"]["HeadlessPagesLanguage"][];
meta: components["schemas"]["HeadlessPagesMeta"];
regions: {
[key: string]: (components["schemas"]["HeadlessContentRead"] | components["schemas"]["HeadlessContentFallbackRead"])[];
};
shortcut?: components["schemas"]["HeadlessPagesShortcut"] | null;
};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": 2076,
"CType": "text",
"header": "Free mode",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "In free mode a language has content elements of its own, in its own order, translated or not, each with its own uid. Kettenblatt's German home page opens with a seasonal note that doesn't exist in English:"
}
]
},
{
"_type": "block",
"_key": "k2",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k3",
"marks": [
"code"
],
"text": "GET https://kettenblatt.example/de/_api/headless_pages/3000"
}
]
}
],
"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;
};The language switch
Menu titles and URLs follow the page translations in every mode. The language links of this site point to actual translations only; where a page has none, the link leads to the home page of that language and says so.
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": 2077,
"CType": "text",
"header": "The language switch",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "Menu titles and URLs follow the page translations in every mode. The language links of this site point to actual translations only; where a page has none, the link leads to the home page of that language and says so."
}
]
}
],
"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;
};