[TYPO3-core] RFC: #6829 - New general template-class usable for FE+BE
Ingmar Schlecht
ingmar at typo3.org
Sun Nov 25 15:46:36 CET 2007
+1 based on reading.
cheers
Ingmar
Steffen Kamper schrieb:
> ok, i did a new patch.
> I only copied 2 of the functions to t3lib_parsehtml (2 functions still
> exists there)
>
> So we have same functionality eithout a new class, using t3lib_parsehtml
>
> require_once (PATH_t3lib.'class.t3lib_parsehtml.php');
>
> t3lib_parsehtml::getSubpart($content, $marker)
> t3lib_parsehtml::substituteSubpart($content,$marker,$subpartContent,$recursive=1)
> t3lib_parsehtml::substituteMarker($content,$marker,$markContent)
> t3lib_parsehtml::substituteMarkerArray($content,$markContentArray,$wrap='',$uppercase=0)
>
> I also replaced the two function in tslib_content with wrappers.
>
> vg Steffen
>
> "Steffen Kamper" <steffen at sk-typo3.de> schrieb im Newsbeitrag
> news:mailman.1.1195994542.531.typo3-team-core at lists.netfielders.de...
>> 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