Project

General

Profile

Actions

Bug #16678

closed

translating of sitetitle not possible

Added by Martin Kästner over 17 years ago. Updated about 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-10-31
Due date:
% Done:

0%

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

Description

The sitetitle-part in the generated title-tag which is generated by the function t3lib_TStemplate::printTitle() used in the file class.tslib_pagegen.php could not be translated. Because it is entered in the template record.

Now if you have an multilanguage website you would like to translate not only the page title but also the sitetitle. There are some alternatives but no usefull ones:

1. setting the title-Tag with TypoScript:
iE.:
page.headerData.5 = TEXT
page.headerData.5.field = subtitle // title
page.headerData.5.wrap = <title>{$label.headertitle}:  |</title>
(and setting translations for the sitetitle via TS)

Then you can not overwrite the page title with an extension. Very bad, for tt_news and some other.

2. using an UserFunction to generate the title:
here no TS-params are passed through, so you could only set the translations in the user function? Why do not pass the TS to the function?

3. changing the function in the core ...

Is it possible to set an alternative site title in the TS (with conditions for the languages) and to use this "altSiteTitle" (config.altSiteTitle) in the printTitle-Function?

(issue imported from #M4450)

Actions #1

Updated by Michael Stucki over 17 years ago

The config.noPageTitle option can be used to let the title hide completely. This allows you to compile the <title> tag manually however you like it.

Actions

Also available in: Atom PDF