[TYPO3-dev] tslib_fe-contentStr-hook

Dmitry Dulepov dmitry at typo3.org
Fri Oct 17 19:12:36 CEST 2008


Hi!

Steffen Kamper wrote:
> the problem is that in the hook i only have the array where i can add a 
> search and a replace string like
> $params['search'][] = 'typo3';
> $params['replace'][] = 'TYPO3';
> 
> The replace is in tslib_fe after the hook and makes a simple str_replace 
> with both arrays. But for the example above this doesn't work.

I would make a patch and add 'regexp' boolean key into $params. Then I would use either str_replace or preg_replace in tsfe.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/iphone_as_productivity_tool/




More information about the TYPO3-dev mailing list