TYPO3: Setting XHTML 1.1 DOCTYPE
How to change the DocType in the TYPO3 template setup.
- config.doctype = xhtml_11
- config.xhtmlDoctype = xhtml_11
- config.xmlprologue = none
- config.xhtml_cleaning = all
The DOCTYPE can be set to these values:
xhtml_trans (XHTML 1.0 Transitional doctype)
xhtml_frames(XHTML 1.0 Frameset doctype)
xhtml_strict (XHTML 1.0 Strict doctype)
xhtml_basic (XHTML basic doctype)
xhtml_11 (XHTML 1.1 doctype)
xhtml_2 (XHTML 2 doctype)
none (NO doctype at all)
The XML prologue can be set to these values:
xml_10 (XML 1.0 prologue)
xml_11 (XML 1.1 prologue)
none (the default XML prologue is not set)
The XHTML cleaning can be enabled by the following values:
all (the content is always processed before it may be stored in cache)
cached (only if the page is put into the cache)
output (only the output code just before it’s echoed out)
Further information about setting the doctype is available in the TSref.
Related Articles:
- TYPO3: Setting up secondary language
- TYPO3: Making a simple menu as an unordered list in XHTML
- TYPO3: tt_news LIST and SINGLE at the same page
- TYPO3: XHTML Valid 3 Level Menu in Typoscript
- TYPO3: Add tt_news LATEST as TypoScript Object
- TYPO3: Changing the tt_news template markup
- TYPO3: How to make a path/breadcrumb in typoscript
- TYPO3/TypoScript: How to add Page Updated Timestamp
- TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support






about 3 years ago
Another good idea in this very context is to activate the xhtml cleaning parser. When T3 has rendered the HTML-output of a page this cleaner is going to try to remove non valid xhtml as injected e.g. by non xhtml conform extensions.
config.xhtml_cleaning = all
polarizers 2 cent
about 3 years ago
It’s added ;o)
about 6 months ago
But how can i do it in templavoila ?
about 1 week ago
With TYPO3 4.4.0 you can now use the html5 doctype, like this:
config.doctype = html_5