Feature #39700
TypoScript: Allow easy comparison against multiple values
| Status: | Resolved | Start date: | 2012-08-11 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | TypoScript | |||
| Target version: | - | |||
| TYPO3 Version: | 6.0 | Complexity: | ||
| PHP Version: | ||||
| Votes: | 1 (View) |
Description
Currently you can only compare against multiple values like:
[globalVar = TSFE:id=10, TSFE:id=12, TSFE:id=15]
While it might be great to have something like
[globalVar = TSFE:id IN (10,12,15)]
that won't easily work in TypoScript since the commas, brackets etc. would make detection quite hard - according to how TypoScript is currently implemented.
What if we use the "standard" split-operator?
[globalVar = TSFE:id=10|12|15]
Related issues
| related to TypoScript Reference (TSref) - Feature #39888: TypoScript Conditions: Allow easy comparison against mult... | Closed | 2012-08-17 | ||
| related to Core - Bug #45165: Condition [globalVar = LIT:10 != 10] is true | Accepted | 2013-02-05 | ||
| duplicated by Core - Feature #45867: Allow easy conditions against multiple values/a list | Resolved | 2013-02-26 |
Associated revisions
[FEATURE] TypoScript: Allow easy comparison against multiple values
Allow easy comparison like:
[globalVar = TSFE:id = 10|12|15] (in list)
[globalVar = TSFE:id != 10|12|15] (not in list)
Change-Id: Iae920720ae6058c2cd741f74204c2fbce779e00f
Resolves: #39700
Releases: 6.0
Reviewed-on: http://review.typo3.org/13589
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Ingo Renner
Tested-by: Ingo Renner
History
Updated by Gerrit Code Review 10 months ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13589
Updated by Gerrit Code Review 10 months ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13589
Updated by Gerrit Code Review 10 months ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13589
Updated by Stefan Neufeind 10 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 08fcac15ceac5c898f75848e8847252c88cb701c.
Updated by Gerrit Code Review 8 months ago
- Status changed from Resolved to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15874
Updated by Gerrit Code Review 8 months ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15874
Updated by Gerrit Code Review 8 months ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15874
Updated by Stefan Neufeind 4 months ago
This is already merged and imho just forge didn't pick up the resolved-state correctly.
Updated by Michael Stucki 4 months ago
- Status changed from Under Review to Resolved