Project

General

Profile

Actions

Feature #28601

closed

Multiple stdWrap executed in numeric order

Added by Stefan Neufeind over 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2011-07-31
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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 {
...
}
}

Actions #1

Updated by Mr. Hudson over 12 years ago

Patch set 1 of change I7f2c854d3a2466a21056cf3fa2bb118f408bf4fa has been pushed to the review server.
It is available at http://review.typo3.org/3922

Actions #2

Updated by Xavier Perseguers over 12 years ago

  • Target version deleted (4.6.0-beta1)
Actions #3

Updated by Thorsten Kahler over 12 years ago

  • Status changed from New to Under Review
  • Target version set to 4.7.0
Actions #4

Updated by Gerrit Code Review over 12 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/3922

Actions #5

Updated by Gerrit Code Review about 12 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/3922

Actions #6

Updated by Philipp Gampe about 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF