Bug #17031

Multi-language website title

Added by John Angel over 6 years ago. Updated about 1 month ago.

Status:Needs Feedback Start date:2007-02-23
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:Content Rendering
Target version:-
TYPO3 Version:4.1 Complexity:
PHP Version:
Votes: 0

Description

Website title is currently fetched from template only, preventing multi-language website title.

If 'website title' field in template is not present, we can use root page title as website title, which provides full support for multi-language website title.

Patch:

t3lib/t3lib_tstemplate.php:1209

AFTER:

$st = trim($this->setup['sitetitle']) ? $this->setup['sitetitle']:'';

INSERT CODE:

if(empty($st) && $this->rootId) {
$root_page = $GLOBALS['TSFE']->sys_page->getPage_noCheck($this->rootId);
if(sizeof($root_page)) {
$st = trim($root_page['title']);
}
}

This should be fixed for ver 4.1.

(issue imported from #M5057)

5057.patch (728 Bytes) Administrator Admin, 2007-06-25 19:34

History

Updated by John Angel about 6 years ago

Better version, includes short navigation title:

t3lib/class.t3lib_tstemplate.php:1210

AFTER:

$st = trim($this->setup['sitetitle']) ? $this->setup['sitetitle']:'';

INSERT CODE:

if(empty($st) && $this->rootId && $GLOBALS['TSFE']->id!=$this->rootId) {
$root_page = $GLOBALS['TSFE']->sys_page->getPage_noCheck($this->rootId);
if(sizeof($root_page)) {
$st = trim($root_page['nav_title'] ? $root_page['nav_title'] : $root_page['title']);
}
}

Updated by Alexander Opitz about 1 month ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • TYPO3 Version set to 4.1

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Also available in: Atom PDF