[TYPO3-templavoila] Hook for additional information

Tapio Markula tapio.markula at atwebteam.com
Wed Apr 25 15:48:16 CEST 2007


Hi

What about this kind of hook after creating content-related information

$cellContent .= $this->render_framework_allSheets($subElementArr, 
$languageKey, $subElementPointer, $elementContentTreeArr['ds_meta']);

							
// hook adding additinal information	
if (is_array 
($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][XXX]['addItemInformation'])) {
foreach 
($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][XXX]['addItemInformation'] as 
$classRef) {
									$hookObj= &t3lib_div::getUserObj($classRef);
									if (method_exists($hookObj, 'addItemInformation'))
										$cellContent .= $hookObj->addItemInformation($subElementArr, 
$languageKey, $subElementPointer, 
$elementContentTreeArr['ds_meta'],$this->modTSconfig);
									}
}

In a project customer wanted to add some information.
							


More information about the TYPO3-project-templavoila mailing list