[TYPO3-dev] Howto change page title?

Andreas Wagner andreas.wagner at klee.se
Sun Oct 8 01:06:19 CEST 2006

Andreas Bulling wrote:

> What's the easiest/recommended way to change the browser's
> page title in one's extension?

This is how it's done in tt_news:

// set the title of the single view page to the title of the news record
if ($this->conf['substitutePagetitle']) {
	$GLOBALS['TSFE']->page['title'] = $row['title'];
	// set pagetitle for indexed search to news title
	$GLOBALS['TSFE']->indexedDocTitle = $row['title'];

Regards, Andreas

More information about the TYPO3-dev mailing list