Project

General

Profile

Actions

Bug #17870

closed

Treatment of content-elements in front- and backend with language setting 'all'

Added by Karl Molter over 16 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2007-11-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Content elements with language setting [All] (sys_language_uid = 1) are not rendered in the frontend and are not shown in the backend Web>Page view.
This has been reported in several bulletin boards since about two years, but the problem still exists in version 4.1.3

To me it seems that the following modifications fixes the problem, but a core developer should have a look on it to decide wether it represents the philosophy of sys_language_uid = -1 correctly and if there are any other cases to be considered:

Frontend Fix:
file: typo3/sysext/cms/tslib/typo3/sysext/cms/tslib
line: 6697

modified from
$query.=' AND '.$conf['languageField'].' IN ('.$sys_language_content.')';
to
$query.=' AND '.$conf['languageField'].' IN ('.$sys_language_content.',-1)';

Backend Fix:
File: typo3/sysext/cms/layout/class.tx_cms_layout.php
Line: 419

Modified from
$showLanguage = $this->defLangBinding && $lP==0 ? ' AND sys_language_uid IN (0,-1)' : ' AND sys_language_uid='.$lP;
to
$showLanguage = $this->defLangBinding && $lP==0 ? ' AND sys_language_uid IN (0,-1)' : ' AND sys_language_uid IN ('.$lP.',-1)';

(issue imported from #M6867)

Actions

Also available in: Atom PDF