[TYPO3] change title from extension

Peter Klein peter at umloud.dk
Fri Dec 22 18:36:32 CET 2006


Hi Stano.
You can use "config.titleTagFunction"
Then all you have to do is create a small PHP function that returns the 
title you want.

--
Peter Klein / Umloud Untd.
"Stano Paška" <stano.paska at gmail.com> wrote in message 
news:mailman.35466.1166789022.21325.typo3-english at lists.netfielders.de...
Hi,

I need change page title and H1 from extension.

My title setting is:

config.noPageTitle = 2
page.headerData.1 = TEXT
page.headerData.1 {
  field = title
  noTrimWrap = |<title>| - some text</title>|
}
page = PAGE
page.10 = TEMPLATE
page.10.marks.H1 = TEXT
page.10.marks.H1.data = page:title

I tried:

$GLOBALS['TSFE']->tmpl->setup['page.']['headerData.']['1.']['value'] =
'New title';
unset($GLOBALS['TSFE']->tmpl->setup['page.']['headerData.']['1.']['field']);
or
$GLOBALS['TSFE']->page['title'] = 'New title';

but it looks like it was processed before and this changes does not work.

When I remove config.noPageTitle, it works.
But I need that. Or if you have other way to add text after title...

Thanks.

Stano Paška. 




More information about the TYPO3-english mailing list