Links
Typolinks arrive resolved: an absolute href, plus target and title where the editor set them. Page links already point to the request language, file links to the file. Each heading below is a header element with a different link.
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": 2200,
"CType": "textmedia",
"header": "Links",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "Typolinks arrive resolved: an absolute "
},
{
"_type": "span",
"_key": "k2",
"marks": [
"code"
],
"text": "href"
},
{
"_type": "span",
"_key": "k3",
"marks": [],
"text": ", plus "
},
{
"_type": "span",
"_key": "k4",
"marks": [
"code"
],
"text": "target"
},
{
"_type": "span",
"_key": "k5",
"marks": [],
"text": " and "
},
{
"_type": "span",
"_key": "k6",
"marks": [
"code"
],
"text": "title"
},
{
"_type": "span",
"_key": "k7",
"marks": [],
"text": " where the editor set them. Page links already point to the request language, file links to the file. Each heading below is a header element with a different link."
}
]
}
],
"assets": [
{
"uid": 2025,
"name": "links.jpg",
"extension": "jpg",
"publicUrl": "/fileadmin/website/plates/links.jpg",
"mimeType": "image/jpeg",
"fileSize": 169605,
"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;
};
A new tab with a title (opens in a new tab)
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": 2201,
"CType": "header",
"header": "A new tab with a title",
"header_layout": 0,
"header_position": "",
"header_link": {
"href": "https://github.com/maikschneider/tca-api-headless",
"target": "_blank",
"title": "tca-api-headless on GitHub"
},
"subheader": "",
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentHeaderRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "header";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};A page, in the language of the request
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": 2202,
"CType": "header",
"header": "A page, in the language of the request",
"header_layout": 0,
"header_position": "",
"header_link": {
"href": "https://typo3.example/website/quick-start",
"target": null,
"title": null
},
"subheader": "",
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentHeaderRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "header";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};A page of another site
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": 2203,
"CType": "header",
"header": "A page of another site",
"header_layout": 0,
"header_position": "",
"header_link": {
"href": "https://typo3.example/kettenblatt/visit",
"target": null,
"title": null
},
"subheader": "",
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentHeaderRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "header";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};A file
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": 2204,
"CType": "header",
"header": "A file",
"header_layout": 0,
"header_position": "",
"header_link": {
"href": "https://typo3.example/fileadmin/website/cheat-sheet.txt",
"target": null,
"title": "Cheat sheet"
},
"subheader": "",
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentHeaderRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "header";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};An e-mail address
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": 2205,
"CType": "header",
"header": "An e-mail address",
"header_layout": 0,
"header_position": "",
"header_link": {
"href": "mailto:workshop@kettenblatt.example",
"target": null,
"title": null
},
"subheader": "",
"layout": 0,
"frame_class": "default",
"space_before_class": "",
"space_after_class": ""
}Generated TypeScript type
type HeadlessContentHeaderRead = {
"@type"?: string;
"@id"?: string;
uid?: number;
CType: "header";
header?: string;
header_layout?: number;
header_position?: string;
header_link?: components["schemas"]["HeadlessLink"] | null;
subheader?: string;
layout?: number;
frame_class?: string;
space_before_class?: string;
space_after_class?: string;
};Links in rich text
Inside rich text, links are link annotations with the same properties: the navigation page, Kettenblatt's bikes in a new tab, a file and the colophon.
Only http, https, mailto and tel are kept. Anchors, record links and pages not available in the language resolve to nothing: their text stays, without a link. The colophon exists in English only, so the German version of this paragraph has no link there.
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": 2206,
"CType": "text",
"header": "Links in rich text",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k4",
"style": "normal",
"markDefs": [
{
"_key": "k0",
"_type": "link",
"href": "https://typo3.example/website/features/navigation",
"target": null,
"title": null
},
{
"_key": "k1",
"_type": "link",
"href": "https://typo3.example/kettenblatt/bikes",
"target": "_blank",
"title": null
},
{
"_key": "k2",
"_type": "link",
"href": "https://typo3.example/fileadmin/website/cheat-sheet.txt",
"target": null,
"title": null
},
{
"_key": "k3",
"_type": "link",
"href": "https://typo3.example/website/colophon",
"target": null,
"title": null
}
],
"children": [
{
"_type": "span",
"_key": "k5",
"marks": [],
"text": "Inside rich text, links are "
},
{
"_type": "span",
"_key": "k6",
"marks": [
"code"
],
"text": "link"
},
{
"_type": "span",
"_key": "k7",
"marks": [],
"text": " annotations with the same properties: "
},
{
"_type": "span",
"_key": "k8",
"marks": [
"k0"
],
"text": "the navigation page"
},
{
"_type": "span",
"_key": "k9",
"marks": [],
"text": ", "
},
{
"_type": "span",
"_key": "k10",
"marks": [
"k1"
],
"text": "Kettenblatt's bikes"
},
{
"_type": "span",
"_key": "k11",
"marks": [],
"text": " in a new tab, "
},
{
"_type": "span",
"_key": "k12",
"marks": [
"k2"
],
"text": "a file"
},
{
"_type": "span",
"_key": "k13",
"marks": [],
"text": " and "
},
{
"_type": "span",
"_key": "k14",
"marks": [
"k3"
],
"text": "the colophon"
},
{
"_type": "span",
"_key": "k15",
"marks": [],
"text": "."
}
]
},
{
"_type": "block",
"_key": "k16",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k17",
"marks": [],
"text": "Only http, https, mailto and tel are kept. Anchors, record links and pages not available in the language resolve to nothing: their text stays, without a link. The colophon exists in English only, so the German version of this paragraph has no link there."
}
]
}
],
"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;
};
