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

Ingmar Schlecht ingmar at typo3.org
Sun Nov 25 14:15:56 CET 2007


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

Steffen Kamper schrieb:
> Hi,
> 
> this is a SVN patch request!
> 
> Branches: Trunk only!
> 
> BT Reference: http://bugs.typo3.org/view.php?id=68269
> 
> Problem:
> Templating in BE is not supported yet. But the functions are already in 
> core. Unfortunally they are in tslib_content which makes it complicate to 
> use them in BE.
> 
> Solution:
> I took the 4 "basic" functions from tslib_content and copied them to a new 
> class: t3lib_htmltemplate. Now they are easy usable also in BE.
> 
> May be later they should be removed from tslib_content with a wrapper there 
> calling this functions to prevent double code.
> 
> Notes:
> Calling the functions is very easy
> 
> require_once (PATH_t3lib.'class.t3lib_htmltemplate.php');
> 
> t3lib_HTMLtemplate::getSubpart($content, $marker)
> t3lib_HTMLtemplate::substituteSubpart($content,$marker,$subpartContent,$recursive=1)
> t3lib_HTMLtemplate::substituteMarker($content,$marker,$markContent)
> t3lib_HTMLtemplate::substituteMarkerArray($content,$markContentArray,$wrap='',$uppercase=0)
> 
> vg  Steffen
> 
> 
> 
> 


-- 
Ingmar Schlecht
TYPO3 Association Active Member


More information about the TYPO3-team-core mailing list