[TYPO3-english] HTML5 Boilerplate with TYPO3
Martin Mädler
martin.maedler at rwth-aachen.de
Wed Mar 2 14:59:50 CET 2011
Hi,
thank you all. I really like the TS conditions idea.
However, I would feel better if I could have the meta tag: <meta
http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
right after the charset definition as it is recommended by the template
designers of HTML5 Boilerplate.
Do you have any ideas on how to achieve this without constructing the
header completely on my own?
Cheers
Martin
Am 01.03.2011 13:55, schrieb Victor Livakovsky:
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list