{
  "@type": "HeadlessPages",
  "@id": "/_api/headless_pages/2009",
  "uid": 2009,
  "title": "Content and rich text",
  "slug": "/features/content",
  "seo_title": "",
  "description": "Ten content types, typed by CType; rich text as Portable Text, lists and tables as data.",
  "no_index": 0,
  "no_follow": 0,
  "canonical_link": null,
  "og_title": "",
  "og_description": null,
  "og_image": [
    {
      "uid": 2021,
      "name": "content.jpg",
      "extension": "jpg",
      "publicUrl": "https://typo3.example/fileadmin/_processed_/f/5/csm_content_0963d2a51e.jpg",
      "mimeType": "image/jpeg",
      "fileSize": 248813,
      "metadata": {
        "title": null,
        "alternative": "A printer’s type case with sorted lead spacers, some inked in cyan, magenta and yellow, and a brayer with magenta ink",
        "description": null,
        "copyright": null
      },
      "width": 1536,
      "height": 806
    }
  ],
  "breadcrumbs": [
    {
      "uid": 2000,
      "title": "tca-api-headless",
      "nav_title": "",
      "url": "https://typo3.example/website/",
      "doktype": 1
    },
    {
      "uid": 2002,
      "title": "Features",
      "nav_title": "",
      "url": "https://typo3.example/website/features",
      "doktype": 1
    },
    {
      "uid": 2009,
      "title": "Content and rich text",
      "nav_title": "",
      "url": "https://typo3.example/website/features/content",
      "doktype": 1
    }
  ],
  "languages": [
    {
      "languageId": 0,
      "locale": "en-US",
      "hreflang": "en",
      "title": "English",
      "url": "https://typo3.example/website/features/content",
      "available": true,
      "active": true
    },
    {
      "languageId": 1,
      "locale": "de-DE",
      "hreflang": "de",
      "title": "German",
      "url": "https://typo3.example/website/de/funktionen/inhalte",
      "available": true,
      "active": false
    }
  ],
  "meta": {
    "robots": "index,follow",
    "canonical": "https://typo3.example/website/features/content",
    "schema": {
      "@context": "https://schema.org",
      "@type": "WebPage",
      "url": "https://typo3.example/website/features/content",
      "name": "Content and rich text",
      "inLanguage": "en",
      "description": "Ten content types, typed by CType; rich text as Portable Text, lists and tables as data."
    },
    "alternates": [
      {
        "hreflang": "en",
        "href": "https://typo3.example/website/features/content"
      },
      {
        "hreflang": "de",
        "href": "https://typo3.example/website/de/funktionen/inhalte"
      },
      {
        "hreflang": "x-default",
        "href": "https://typo3.example/website/features/content"
      }
    ]
  },
  "regions": {
    "intro": [
      {
        "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": ""
      }
    ],
    "main": [
      {
        "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": ""
      },
      {
        "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": ""
      },
      {
        "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": ""
      },
      {
        "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
      },
      {
        "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": ""
      },
      {
        "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": ""
      },
      {
        "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": ""
      }
    ],
    "specimen": [
      {
        "uid": 2053,
        "CType": "header",
        "header": "Kettenblatt: Repairs",
        "header_layout": 0,
        "header_position": "",
        "header_link": {
          "href": "https://typo3.example/kettenblatt/repairs",
          "target": null,
          "title": null
        },
        "subheader": "",
        "layout": 0,
        "frame_class": "default",
        "space_before_class": "",
        "space_after_class": ""
      },
      {
        "uid": 2054,
        "CType": "header",
        "header": "Kettenblatt: Visit",
        "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": ""
      }
    ]
  }
}