TYPO3

Extending the HTML head tag

deutsch Hier klicken, um diese Seite auf Deutsch zu lesen: HTML-Header erweitern

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.

TypoScript: Adding a meta tag to the HTML header

SETUP
page = PAGE
page {
  headerData {
    10 = TEXT
    10.value = <meta name="best-cms" content="TYPO3, of course."/>
  }
}

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

Comments for Extending the HTML head tag

Add a comment


(will not be displayed)


(Fields marked with a * are mandatory)
Please note that your comment will be checked before it gets published.
Aktuelles

Latest TYPO3 tutorial
How to define special links with custom tags

How to define special links with custom tags

September 2010 – How you can define your own tags for specific links in TYPO3. We show tags for nofollow links, links to other languages and links to tt_news records. more

Latest TypoScript snippet
Automated backlink to parent page

Automated backlink to parent page

December 2009 – How to automatically generate a back link to a page one level above the current page. more

Latest glossary entry
File browsers in TYPO3

File browsers in TYPO3

March 2010 – What are file browsers in TYPO3 and how can they be used? more