[TYPO3-core] RFC: #6829 - New general template-class usable for FE+BE

Steffen Kamper steffen at sk-typo3.de
Sun Nov 25 14:55:01 CET 2007


"Ingmar Schlecht" <ingmar at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1195996561.31366.typo3-team-core at lists.netfielders.de...
> Hi Steffen,
>
> after looking at the function...
>
> + public function getSubpart($content, $marker) {
> + return t3lib_parsehtml::getSubpart($content, $marker);
> + }
>
> ...it occured to me that we could just move the few markerArray related
> functions into t3lib_parsehtml as well and do not introduce a new class
> at all.
>
> cheers
> Ingmar
>

absolutely. After looking deeper, i will make a new patch and move 2 of the 
functions to t3lib_parsehtml so it's ready for usage.

Masi, you're right. Wrapper for str_replace is not needed really, but may be 
devs are used to it.
The one really helpful is the substituteMarkerArray.

Indeed the templating is not as powerful, but with these simple functions it 
is possible to do an easy template with marker and subparts.

I will provide new patch also with wrapper in tslib_content this afternoon.

vg Steffen 




More information about the TYPO3-team-core mailing list