[TYPO3-dev] tiny improvment for includeCSS / JS

Steffen Kamper steffen at sk-typo3.de
Sun Sep 30 23:08:46 CEST 2007


"Christopher Torgalson" <bedlamhotel at gmail.com> schrieb im Newsbeitrag 
news:mailman.6.1191184592.20721.typo3-dev at lists.netfielders.de...
> On 9/30/07, Tolleiv Nietsch <info at tolleiv.de> wrote:
>> Hi
>> since conditional comments are a very common way of achieving a nice
>> Cross-Browser compatible webpage I'd suggest a tiny improvement for
>> "page.includeCSS" and "page.includeJS".
>>
>> I think it would be nice to have a additional option ".condition" for
>> those two properties. The usage could look like this:
>>
>> page.includeCSS.file1 = style.css
>> page.includeCSS.file1.condition = foo
>>
>> rendered as:
>>
>> <!--[if foo]><link rel="stylesheet" type="text/css" href="style.css"
>> />![endif]-->
>>
>>
>> So let me know what you think of this idea.
>> I'd provide a patch to the Core-Guys if you'd also like to have that
>> feature.
>
>
> Not a bad idea as long as we're saddled with various versions of
> Internet Explorer.
>
> +1
>

yes - i do that every time with page.headerData ...

vg  Steffen

> -- 
> Christopher Torgalson
> http://www.typo3apprentice.com/ 






More information about the TYPO3-dev mailing list