Issue Feature Closed

#17847Move template-functions in own class to use it without instancing (FE+BE)

Steffen Kamper 11/25/07, 13:29 updated 08/06/10, 13:17

Description

Templating in BE is not supported yet. But the functions are already in core. Unfortunally they are in tslib_content which makes it complicate tu use them in BE.

I took the 4 “basic” functions from tslib_content and copied them to a new class: t3lib_htmltemplate. No they are esay usable in BE.

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)
(issue imported from #M6829)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.