Project

General

Profile

Actions

Feature #17847

closed

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

Added by Steffen Kamper almost 17 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-11-25
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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

Actions

Also available in: Atom PDF