[TYPO3] pagetitle and tt_news

Francois Suter fsuter at cobweb.ch
Sat May 31 12:43:58 CEST 2008


Hi Dieter,

> I found this piece of ts to get the domain name before the page title.
> 
> config.noPageTitle = 2
> page.headerData.5 = TEXT
> page.headerData.5.field = subtitle // title
> page.headerData.5.wrap = <title>Domain.com: &nbsp; |</title>
> 
> However it does not work for a tt_news article.
> The pagetitle then becomes:  Domain.com:newsarticle (newsarticle is the 
> page where I show single view of an article)

The problem is that when you refer to "title" in the field property, it 
actually means the "title" column of the pages table. What you want is 
the title that is stored in the TSFE. This is the one that's overridden 
by tt_news.

The following code works for me:

page.headerData.5.data = field:subtitle // TSFE:page|title

HTH

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-english mailing list