[TYPO3-core] RFC #11207 Hook Request in typo3/class.webPageTree.php -> wrapTitle

Xavier Perseguers typo3 at perseguers.ch
Thu May 28 13:32:18 CEST 2009


Hi,

> Problem:
> I'd like to have a hook for the pagetree title so I don't have to bloat 
> up the core when using the translated pagetitle in the pagetree.
> 
> 
> Solution:
> With this hook all functionality is capsuled inone place.

+		if 
(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['pageTitleOverLay'])) 
{
+			$_params = array('title' => $title, 'row' => $row);
+			foreach 
($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['pageTitleOverLay'] as 
$_funcRef)	{
+				$title = t3lib_div::callUserFunction($_funcRef, $_params, $this);
+			}
+		}

How is it supposed to work if multiple hooks are associated?

-- 
Xavier Perseguers
DBAL-Member

http://xavier.perseguers.ch/en/tutorials/typo3.html


More information about the TYPO3-team-core mailing list