Feature #28601
closedMultiple stdWrap executed in numeric order
100%
Description
It is already possible to do multiple stdWrap-actions one after each other by chaining them together (nested stdWrap). But for more than a few stdWrap-levels that gets a bit complicated. Also you can't easily remove/copy/reorder those actions.
In several places numerical indices are commonly used (10. / 20. / 30. / ...). It would be a good idea to add such functionality to stdWrap as well.
stdWrap-functions are all non-numeric so this won't conflict with existing/future stdWrap-functions.
Example:
20 = TEXT
20 {
value = *
wrap = a|A
1.wrap = b|B
10.wrap = c|C
2.wrap = d|D
}
Expected result:
cdba*ABDC
(all numeric stdWrap-calls after the regular ones which might fill in data first or the like).
Dependencies:
#19347 is about implementing search/replace-functionality to stdWrap. Current versions of the patch suggest to implement a hierarchy like
abc.stdWrap.replacement {
10 {
...
}
20 {
...
}
}
But that would be a solution only (here) for replacement. With this addition now it would be possible to use the same functionality for all stdWrap-functions and #19347 should be revised to take advantage of this. So a possible new syntax would simply be:
abc.stdWrap {
10.replacement {
...
}
20.replacement {
...
}
}
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change I7f2c854d3a2466a21056cf3fa2bb118f408bf4fa has been pushed to the review server.
It is available at http://review.typo3.org/3922
Updated by Xavier Perseguers over 13 years ago
- Target version deleted (
4.6.0-beta1)
Updated by Thorsten Kahler over 13 years ago
- Status changed from New to Under Review
- Target version set to 4.7.0
Updated by Gerrit Code Review almost 13 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/3922
Updated by Gerrit Code Review almost 13 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/3922
Updated by Philipp Gampe almost 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a0c4d92faa6f06c089f9f663b344f5d568106257.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed