[TYPO3-english] HTML5 Boilerplate with TYPO3

Victor Livakovsky v-tyok at mail.ru
Tue Mar 1 13:55:03 CET 2011


Hi, Martin.

> <!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]-->
> <!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]-->
> <!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]-->
> <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> 
> <!--<![endif]-->
> 
> Any ideas on how to do this via Typoscript or something? The lang 
> attribute has to be dynamic.

You may achieve this with TS conditions:
[browser = msie] && [version < 7]
  config.htmlTag_setParams = class="no-js ie6"
[browser = msie] && [version = 7]
  config.htmlTag_setParams = class="no-js ie7"
[browser = msie] && [version = 8]
  config.htmlTag_setParams = class="no-js ie8"
[global] 
config.htmlTag_setParams = class="no-js"
config.htmlTag_langKey = en


More information about the TYPO3-english mailing list