[Typo3-dev] Proposing hook for class.tslib_content.php
Jan Roehrich
jan.roehrich at iao.fhg.de
Wed Sep 15 15:54:20 CEST 2004
Hello, especially Kasper,
I would suggest a hook in tslib_cObj->cObjGetSingle for integrating new
CTypes directly.
Here is my diff against class.tslib_content.php shipped with 3.6.2:
-------------------------------------------------------------------
--- class.tslib_content.php.old 2004-09-15 14:59:01.783602168 +0200
+++ class.tslib_content.php 2004-09-14 17:24:55.000000000 +0200
@@-540,6 +540,15 @@
case 'MULTIMEDIA':
$content.=$this->MULTIMEDIA($conf);
break;
+ default:
+ // Hook for integrating new CTypes directly
+
if(is_array(
$GLOBALS["TYPO3_CONF_VARS"]['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjGetSingle_ext']))
{
+ foreach(
$GLOBALS["TYPO3_CONF_VARS"]['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjGetSingle_ext']
as $_classRef) {
+ $_procObj = &t3lib_div::getUserObj($_classRef); + $content.=
$_procObj->cObjGetSingle_ext($name, $conf, $this); + } + } + reak;
}
}
if ($GLOBALS['TT']->LR)
$GLOBALS['TT']->pull($content);
---------------------------------------------------------------------
Greetings Jan
More information about the TYPO3-dev
mailing list