Issue Bug Closed

#14929Need to set config.noPageTitle to 2 to make it work

Steven Bagshaw 08/18/05, 15:14 updated 08/12/06, 14:24

Description

http://typo3.org/documentation/document-library/doc_core_tsref/quot_CONFIG_quot/ reports that config.noPageTitle is a boolean field. However, to get it to work as intended I needed to use config.noPageTitle = 2

I don’t know if the code or the documentation is wrong, but line 616 of tslib_pagegen.php checks for !== 2

The effect is if I have TS in my template like

config.noPageTitle = 1
page.headerData.20 = TEXT
page.headerData.20.field = subtitle // title
page.headerData.20.wrap = <title>My Website Title:&nbsp;|</title>

then I end up with two <title> tags in the &lt;HEAD&gt;&lt;/p&gt; &lt;p&gt;If I change to&lt;/p&gt; &lt;p&gt;config.noPageTitle = 2&lt;/p&gt; &lt;p&gt;then it’s OK. But the documentation isn’t enlightening on what the value 1 would do, if anything.&lt;br /&gt;(issue imported from #M1382)&lt;/p&gt;</title>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.