[TYPO3-dev] Sensible usage of hook tslib_content_getDataHook or not?

Francois Suter fsuter at cobweb.ch
Tue Sep 9 10:24:05 CEST 2008


Hi,

> Use registers. $GLOBALS['TSFE']->register['tx_extkey_name'] from the 
> code and "data = register:tx_extkey_name" from TS.

I've thought about that, but it's no good in my case because my data 
structure is a multi-dimensional array (I should have mentioned that, 
sorry) and register:xxx can only access a 1-dimension array.

case 'register':
	$retVal = $GLOBALS['TSFE']->register[$key];
	break;

which is why I thought about adding a new key and handling it with the 
hook, but it doesn't seem efficient to have that hook called every time 
the data property of a stdWrap is used. Or is that a wrong impression?

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch




More information about the TYPO3-dev mailing list