[TYPO3-dev] Howto change page title?
Michael Stucki
michael at typo3.org
Sun Oct 8 14:39:03 CEST 2006
Markus L. Dechert wrote:
>> What's the easiest/recommended way to change the browser's
>> page title in one's extension?
>
> I'm not sure if I got you right but I once did it with the following
> TypoScript code:
>
> # Set the page title by yourself using localized TS constants for
> # the title part and insert the subtitle after the colon.
> config.noPageTitle = 1
> page.headerData.1 = TEXT
> page.headerData.1.field = subtitle
> page.headerData.1.wrap =
> <title>{$main.temp.site_title.{$temp.i18n.config.language}} :
</title>
This will result in two title tags! Instead, you'll have to set
config.noPageTitle to a value of 2.
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-dev
mailing list