[TYPO3] pagetitle and tt_news
Francois Suter
fsuter at cobweb.ch
Sat May 31 18:34:30 CEST 2008
Hi Dieter,
> It seems that the easiest way to get the sitename and title in the
> pagetitle is how Dmitry Martyenko described it, just fill in the "domain
> name" to "Website title" field in root template. No TS needed and it
> works for tt_news.
It may be the easiest, but the way you did it opens the door to far more
variants, which are better for referencing. You may want to take a look
at that article:
http://www.dawsoninteractive.com/articles/article/typo3-seo-introduction/
> Thanks Guido for your usefull tip, especially the TS to get the tt_news
> title of an article. I use it now to automatically generate an H1.
That may be useful in a case other than tt_news, but when using:
plugin.tt_news {
substitutePagetitle = 1
}
the title of the news is loaded in $GLOBALS['TSFE']->page['title'] which
you can retrieve by TS as shown in my example:
...data = TSFE:page|title
Guido's method is correct and useful, but queries the database which is
unnecessary in this case.
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-english
mailing list