Project

General

Profile

Actions

Feature #42287

closed

stdWrap replacement: add optionSplit-support

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

Status:
Closed
Priority:
Should have
Category:
TypoScript
Target version:
Start date:
2012-10-23
Due date:
% Done:

100%

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

Description

With optionSplit-support for the "replace"-parameter it would be possible to do all nice optionSplit-stuff like replacing the first/middle/last occurences differently.

Actions #1

Updated by Gerrit Code Review over 11 years 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/15898

Actions #2

Updated by Gerrit Code Review over 11 years ago

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

Actions #3

Updated by Philipp Gampe about 11 years ago

This is a documentation

 The ``useOptionSplitReplace`` boolean property of ``replacement`` allows to use optionSplit for the ``replace`` property.
This works for both normal and regexp replacements.
Usage examples are included below
# There1is2a3cat,3a3dog3and3a3tiger3in3da3hood!3Yeah!
10 = TEXT
10.value = There_is_a_cat,_a_dog_and_a_tiger_in_da_hood!_Yeah!
10.replacement.10 {
    search = _
    replace = 1 || 2 || 3
    useOptionSplitReplace = 1
}
# There is a tiny cat, a midsized dog and a big tiger in da hood! Yeah!
20 = TEXT
20.value = There is a cat, a dog and a tiger in da hood! Yeah!
20.replacement.10 {
    search = #(a) (Cat|Dog|Tiger)#i
    replace = ${1} tiny ${2} || ${1} midsized ${2} || ${1} big ${2}
    useOptionSplitReplace = 1
    useRegExp = 1
}
Actions #4

Updated by Gerrit Code Review almost 11 years ago

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

Actions #5

Updated by Gerrit Code Review almost 11 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15898

Actions #6

Updated by Gerrit Code Review over 10 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/15898

Actions #7

Updated by Stefan Neufeind over 10 years ago

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

Updated by Chris topher over 10 years ago

  • TYPO3 Version changed from 6.0 to 6.2
Actions #9

Updated by Chris topher over 10 years ago

  • Target version set to 6.2.0
Actions #10

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF