[TYPO3-core] RFC: Bug #6421: Introducing IECondition for TypoScript

Benjamin Mack mack at xnos.org
Tue Oct 30 12:50:52 CET 2007


Hey all,

this is a SVN patch request.

Type: Feature

BT: http://bugs.typo3.org/view.php?id=6421

Branches: Trunk

Problem:
If you want to add so called browser conditions for the IE like
<!--[if IE 7]>
     <link rel="stylesheet" type="text/css" href="fileadmin/style.css" />
<![endif]-->

you always had to do this manually (e.g. through a HeaderData object).

Solution:
Add a new property to page.includeCSS. With
page.includeCSS.file1 = fileadmin/styles.css
page.includeCSS.file1.ieCondition = IE 7

you'll get the result as above.

Notes:
Thanks for Steffen Kemper for writing the initial patch and testing my 
version :).


-- 
greetings,
benni.
-SDG-

www.xnos.de // www.xnos.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20071030_iecondition.patch
Type: text/x-patch
Size: 2386 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071030/2ba3fa3e/attachment.bin 


More information about the TYPO3-team-core mailing list