Feature #14427
closedAND combination for TypoScript conditions doesn't work
0%
Description
the conditions are always combined with OR what's bad if you have to e.g. check for a certain browser type and version
See the attached extension that makes it work (I've found parts of the code somewhere on typo3.org but can't remember where... so the main credits go to someone else ;-) I've just packed it into a usable format)
Now the following is possible:[browser = msie]&&[version = >5]
- do something
[global]
I would like to see that in the next release of TYPO3, thanks!
(tested and productive with 3.6.1, but should work for 3.7 too, but please check it before you make the changes or contact me if you need help)
(issue imported from #M568)
Files
Updated by Wolfgang Klinger almost 20 years ago
Is this going into the Core or shall I release it as extension? (another XCLASS one) My preference is the first!
Updated by Michael Stucki almost 20 years ago
Hi Wolfgang,
can you please add a diff instead of that t3x file? I will add this to the core afterwards.
Thanks!
Updated by Wolfgang Klinger almost 20 years ago
Here's the diff against 3.8 from CVS
(I slightly changed the code to be backwards compatible, please try it out again)
Updated by Michael Stucki over 19 years ago
bug568.diff contains nothing new, it's just a simplified diff with "-w" applied.
Updated by Michael Stucki over 19 years ago
Changed version number back to 3.7.0.
This is a new feature - I'm sorry I didn't find time to implement this in 3.8 which is feature-freezed now.
Wolfgang, I suggest you create another XCLASS extension for 3.8. I plan to work on several Typoscript improvements right after 3.8 is out. Thanks!
Updated by Michael Stucki over 19 years ago
Have a look at the nice documentation here: http://typo3.org/extensions/repository/list/conditions/
Anyway, this is just a temporary solution, the feature will finally move into the core...
Updated by Lars Houmark over 19 years ago
Hello Michael and Wolfgang,
Is this tested to work with 3.8 final? (otherwise I might be doing so if needed).
I really hope this will make it to the next release ;)
Updated by Georg Kühnberger over 19 years ago
tested AND works as advertized in 3.8.
Michael, pls. move into core for next release - thanks georg
Updated by Lars Houmark about 19 years ago
Will this feature make it in the next version?
Updated by Michael Stucki almost 19 years ago
I think I have no time to look at this bug still think it is an important feature for TYPO3 4.0. Is anybody willing to commit this, please?
Updated by Sebastian Kurfuerst almost 19 years ago
Thanks Wolfgang for taking care of this!
Greets, Sebastian
Updated by Sebastian Kurfuerst almost 19 years ago
Hi Wolfgang,
I am not sure you noticed the extension, but maybe it is worth to have a look at #15562 as well.
Greets, Sebastian