[TYPO3-english] HTML5 Boilerplate with TYPO3

Enrique Moreno Tent enriquemorenotent at gmail.com
Tue Mar 1 14:15:33 CET 2011


I did this:

doctype(
    <!doctype html>
    <!--[if lt IE 7 ]> <html lang="en-us" class="no-js ie6"> <![endif]-->
    <!--[if IE 7 ]>    <html lang="en-us" class="no-js ie7"> <![endif]-->
    <!--[if IE 8 ]>    <html lang="en-us" class="no-js ie8"> <![endif]-->
    <!--[if IE 9 ]>    <html lang="en-us" class="no-js ie9"> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!-->
)
config.htmlTag_setParams = lang="en-us" class="no-js"><!--<![endif]-->


On Tue, Mar 1, 2011 at 12:55 PM, Victor Livakovsky <v-tyok at mail.ru> wrote:

> 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