[TYPO3] Change the title of a page from TS

Jérémy Lecour jeremy.lecour at gmail.com
Mon Jan 23 17:43:58 CET 2006


Hi,

I'm a new french subscriber of this list, but I very often browse
archive and nearly always find my graal. This time, I have to ask
because I don't find.

I use tt_news to manage my news. I also use a 'single_news' page to
display any news in the SINGLE mode.

I use TemplaVoila for my templates and I have a TS object that inserts
my page title in a specific HTML tag.
My TS code for the title :
lib.titre_page = TEXT
lib.titre_page {
	data = page:title
}
It works very fine for all pages. But for my SINGLE page, I'd like to
have my news page instead of my page real title (it is "Single news"
and is not very pleasant ;-) )

I've found in the php code of tt_news that it's making a dynamic title
substitution with that code :

// 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'];
 	}

I'd like to do the same with TS in a template record of in TSconfig of my page.

Thank you for any help.

--
Jérémy Lecour : <mailto:jeremy.lecour at gmail.com>
webdesigner, webmaster et développeur web
Trésorier du PLUG : Provence Linux User Group
http://www.plugfr.org/



More information about the TYPO3-english mailing list