[TYPO3-core] RFC: #15094: Refactor of content objects of tslib_content

Steffen Kamper info at sk-typo3.de
Fri Jul 16 01:33:57 CEST 2010


Hi,

this patch also silently introduce a new feature. You now can use own 
content elements without register or hook or XCLASS. Just create your 
own class extending tslib_content_abstract and register this file to 
autolader.

Example: MY_CE (uppercase is used by tslib_content, but not important)

Create class with following name scheme:
class tslib_content_my_ce extends tslib_content_abstract (use lower case 
only)

render your content element in function render like in abstract class
public function render($conf = array()) {...}

The tslib_content class is in $this->cObj.

vg Steffen


More information about the TYPO3-team-core mailing list