[TYPO3-core] RFC: Fix #7657: Add hook to $TSFE->contentStrReplace()

Steffen Kamper steffen at sk-typo3.de
Sun Mar 2 01:07:36 CET 2008


"Michael Stucki" <michael at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1203947092.22493.typo3-team-core at lists.netfielders.de...
> This is a SVN patch request.
>
> Problem:
> This method allows to overwrite markers in a fully generated website after
> all the caching was already done. So this is very useful for small
> on-the-fly replacements, for example display the fe_user name, or the time
> used for page generation.
>
> Solution:
> Add a hook which will allow extensions to use this very useful feature.
>
> Comments:
> $TSFE->contentStrReplace() cannot be used if cacheHeaders are enabled.
> However, this was already the case before this patch.
>
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=7657
>
> Branches: TYPO3_4-2
>
> - michael
> -- 
> Use a newsreader! Check out
> http://typo3.org/community/mailing-lists/use-a-news-reader/
>

A very simple but effective change. I really see many possibilities here for 
using custom Markers in any content and replace them through a hook. Big 
Hands!

+1 by reading, and though i didn't test it it's obvios that it will work.

vg  Steffen 




More information about the TYPO3-team-core mailing list