[TYPO3-core] RFC Feature #9373: Integrate string replacement to stdWrap

Žiga Dolhar ziga at dolhar.si
Thu Dec 23 14:00:55 CET 2010


Sorry for this shameless *bump*. I came across this functionality/patch 
after searching for a "find&replace" property for stdWrap.

The basic functionality of this patch looks great and I as a typo3 user 
would very like to see it committed one day (of course, taking the 
follow-up discussion into consideration).

-Ziga


On 28.5.2009 19:41, Oliver Hader wrote:
> This is an SVN patch request.
>
> Type: Feature
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=9373
>
> Branch: Trunk
>
> Problem:
> With stdWrap it's not possible yet to do (ordered) string replacements
> for processing content data.
>
> On introducing a new stdWrap property "replacement" that takes an
> ordered list of replacement definitions multiple manipulations could be
> executed the same time. Additionally it regular expressions can be used
> if required.
>
> Solution:
> Integrate a new stdWrap proptery "replacement" that has an ordered array
> and defines replacement actions. Each replacement action has the
> properties "search" and "replace". Optionally "useRegExp" can be defined
> to use preg_replace() instead of str_replace() for the replacement. Each
> property has stdWrap functionality.
>
> Notes:
> Attached is a TypoScript example and the documentation changes. There's
> one thing that should be discussed: The possibility to use the "e"
> modifier for regular expressions that allows to evaluate PHP code. Maybe
> this has to be configurable...
>
> olly



More information about the TYPO3-team-core mailing list