[TYPO3] pagetitle and tt_news

Dieter Jansen dieterjanssennn at gmail.com
Fri May 30 18:01:59 CEST 2008


Thanks! It allways used to work. Maybe tt_news update changed things? It 
seems that substitutePagetitle is default allready on 1.

Now I have 1 more question, since I also let a H1 automatically generate 
on each page :

lib.topheader = COA
lib.topheader {
	5 = TEXT
	5.value = <h1>
	10 = TEXT
	10.value = MyCompany:
	20 = TEXT
	20.value = &nbsp;{page:subtitle // page:title}
	20.insertData = 1
	25 = TEXT
	25.value = </h1>
	}

Here I want also the title of a tt_news article instead of the page 
where the single view is located.

grts Dieter



-------------------------------

DJ> I found this piece of ts to get the domain name before the page title.

DJ> config.noPageTitle = 2
DJ> page.headerData.5 = TEXT
DJ> page.headerData.5.field = subtitle // title
DJ> page.headerData.5.wrap = <title>Domain.com: &nbsp; |</title>

DJ> However it does not work for a tt_news article.
DJ> The pagetitle then becomes:  Domain.com:newsarticle (newsarticle is the
DJ> page where I show single view of an article)

1. Remove this lines from setup.
2. Enter you "domain name" to "Website title" field in root template
record (change in news page template may work too).
3. Check if you tt_news placed as USER plugin (not USER_INT)!
4. Set substitutePagetitle property to 1

plugin.tt_news = USER
plugin.tt_news {
   substitutePagetitle = 1
}


More information about the TYPO3-english mailing list