[TYPO3-core] RFC #11611: Add feature condition on the includeCSS / includeJS

Steffen Kamper info at sk-typo3.de
Sun Aug 2 12:23:23 CEST 2009


Hi,

Oliver Hader schrieb:
>> Maybe you guys can accept an alternative:
>> Instead of:
>> page.includeJS {
>>     file1 = fileadmin/test.js
>>     file1.condition = lte IE 6
>> }
>>
>> what about:
>> page.includeJS {
>>     file1 = fileadmin/test.js
>>     wrap = <!--[if lte IE 6]> | <!--[if lte IE 6]>
>> }
> 
> I think it's fine to just allow stdWrap here that adds some more
> possibilities to modify these resources - example:
> 
> page.includeJS {
>   file1 = fileadmin/file1.js
>   file1.allWrap.wrap = <!--[if IE 6]> | <![endif]-->
> }
> 

after discussion with olly yesterday i will include a wrap in the 
header/footer class for css files and js files. stdWrap is not possible 
as the tag is build in a different way and there are specific params added.
So 2 additions will take place:

page.includeJS {
	file1 = fileadmin/test.js
	# wrap complete tag	
	allWrap = <!--[if lte IE 6]> | <!--[if lte IE 6]>
	# don't check file existance, maybe file is on another server
	external = 1
}

same params will be used for page.includeCSS

vg Steffen


More information about the TYPO3-team-core mailing list