Project

General

Profile

Actions

Bug #14929

closed

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

Added by Steven Bagshaw over 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-08-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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: |</title>

then I end up with two <TITLE> tags in the <HEAD>

If I change to

config.noPageTitle = 2

then it's OK. But the documentation isn't enlightening on what the value 1 would do, if anything.
(issue imported from #M1382)

Actions

Also available in: Atom PDF