[TYPO3-english] HTML5 Boilerplate with TYPO3

Enrique Moreno Tent enriquemorenotent at gmail.com
Wed Mar 2 15:36:36 CET 2011


:)

page = PAGE
page.headerData = COA
page.headerData.10 = TEXT
page.headerData.10.value = <meta http-equiv="X-UA-Compatible"
content="IE=Edge;chrome=1" />


On Wed, Mar 2, 2011 at 1:59 PM, Martin Mädler <martin.maedler at rwth-aachen.de
> wrote:

> 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
>>
>>
> _______________________________________________
> 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