Feature #17847
closedMove template-functions in own class to use it without instancing (FE+BE)
0%
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)
Files
Updated by Steffen Kamper almost 17 years ago
as 2 functions are in parse_html i moved 2 functions to the existing class, so no new class is needed.
See new attachment.