[TYPO3-dev] Hook for additional content-related information

Tapio Markula tapio.markula at atwebteam.com
Wed Apr 25 16:58:17 CEST 2007


Hi

What about this kind of hook after creating content-related information.
The example code is for TemplaVoila but the same kind hook could add
also to the 'Columns' view of the classic page module

$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-dev mailing list