[TYPO3] changing the <title> tag
Michael Stucki
michael at typo3.org
Sat Oct 7 14:02:44 CEST 2006
Benjamin Mack wrote:
> #Title tag extras:
> config.noPageTitle = 1
Be careful! That way you will end up with two title tags.
For historical reasons, noPageTitle=1 does not mean that the title tag is
not printed at all, it just removes the page title from the tag, means that
only the sitename (from sys_template) is printed.
> page.headerData.20 = TEXT
> page.headerData.20.value = MyWebsiteName
> page.headerData.20.wrap = <title>|:
> page.headerData.30 = TEXT
> page.headerData.30.field = title
> page.headerData.40 = TEXT
> page.headerData.40.field = subtitle
> page.headerData.40.wrap = - |
> page.headerData.40.if.isTrue.field = subtitle
> page.headerData.50 = TEXT
> page.headerData.50.value = </title>
config.noPageTitle = 2
page.headerData.20 = COA
page.headerData.20 {
10 = TEXT
10.data = TSFE : tmpl | setup | sitetitle
10.ifEmpty = Default site title
10.wrap = | :
20 = TEXT
20.field = title
30 = TEXT
30.field = subtitle
30.wrap = - |
30.required = 1
wrap = <title> | </title>
}
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-english
mailing list