[TYPO3-english] condition with !=

Stefan Neufeind typo3.neufeind at speedpartner.de
Sun Dec 2 13:18:56 CET 2012


On 12/02/2012 12:29 PM, Katja Lampela wrote:
> 
> I would like to do this:
> 
> [browser != msie]
> page.includeCSS.file10 = fileadmin/template/css/responsive.css
> [global]

[...]

> But it is so that the no-match operator != doesn't work in conditions?

Hi,

currently there is only an equals-check.
(for source see
typo3/sysext/frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php
)

The not-equals-operator is only possible in numeric comparisons.


But you could do things like

page.includeCSS.file10 = fileadmin/template/css/responsive.css
[browser = msie]
page.includeCSS.file10 >
[global]

or

[browser = msie]
[else]
page.includeCSS.file10 = fileadmin/template/css/responsive.css
[global]


Regards,
 Stefan


More information about the TYPO3-english mailing list