[Typo3-dev] Proposing hook for class.tslib_content.php

Ingmar Schlecht ingmars at web.de
Wed Sep 15 16:31:14 CEST 2004


Jan Roehrich schrieb:
> Hello, especially Kasper,
> 
> I would suggest a hook in tslib_cObj->cObjGetSingle for integrating new
> CTypes directly.

In 3.7.0 there is already a hook in that function.
However, this hook is hardcoded to only work with the ObTS extension.

	// Object TypoScript hook:
if(t3lib_extMgm::isLoaded('obts')...

I suggest generalizing that.

I prefer the way Jan has proposed (using the "default" of the switch) to 
the way Kasper has implemented the ObTS hook anyway.

cheers,
Ingmar




More information about the TYPO3-dev mailing list