Issue Bug Closed

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

Karl Molter 11/30/07, 15:33 updated 12/21/14, 21:53

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)

Reviews 0

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