Extending the HTML head section

This TypoScript code shows you how to extend the HTML head section of a TYPO3 page.

If you want to extend the <head> section of an HTML page with additional tags (e.g. meta data) dynamically, you can do this by using the following snippet in your TypoScript template.

Adding a meta tag to the HTML header TypoScript, SETUP section
page = PAGE
page {
  headerData {
    10 = TEXT
    10.value = <meta name="best-cms" content="TYPO3, of course." />
  }
}

In the example above, the additional meta tag best-cms is inserted into the head section. Various other entries (like CSS links or geo tags) are valid.