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

Oliver Hader oliver at typo3.org
Thu May 28 19:41:17 CEST 2009


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
-- 
Oliver Hader
TYPO3 Release Manager 4.3
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0009373_documentation.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090528/a2df18a6/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0009373_typoscript.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090528/a2df18a6/attachment-0001.txt 


More information about the TYPO3-team-core mailing list