[TYPO3-core] RFC #11611: Add feature condition on the includeCSS / includeJS
Tolleiv.Nietsch
info at tolleiv.de
Fri Jul 31 18:06:35 CEST 2009
Hi,
+1 by testing
tested within latest trunk. The following TS-Block:
page.includeJS {
file1 = fileadmin/test.js
file1.condition = lte IE 6
}
resulted in this output:
<!--[if lte IE 6]>
<script src="fileadmin/test.js" type="text/javascript"></script>
<![endif]-->
which is exactly the expected output.
Thanks for the patch :)
Cheers,
Tolleiv
Michael Klapper schrieb:
> This is an SVN patch request.
>
> Type: Feature request
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11611
>
> Branches: trunk
>
> Problem:
> It is often more complex to add CSS/JS includes based on browser
> condition to the HTML-head area.
>
> Solution:
> Add futher "condition" parameter to the PAGE.includeJS &
> PAGE.includeCSS. This would is much smarter than manuel buiding of that
> with and TEXT object.
>
> Notes:
>
> Michael
>
>
>
>
>
More information about the TYPO3-team-core
mailing list