Project

General

Profile

Actions

Feature #16437

closed

styles.content.get is limited to one language only at the same time

Added by David Bruchmann over 18 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2006-08-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The default definition of "styles.content.get" is following:

styles.content.get {
table = tt_content
select.orderBy = sorting
select.where = colPos=0
select.languageField = sys_language_uid
}

Adding records with translations to a page this works only if users do not make the choice of "[ALL]" in the options menu.
The feature "select.languageField" is limiting the choice to one language only.

By a new definition like

"select.andWhere.dataWrap = hidden=0 AND (sys_language_uid=-1 OR sys_language_uid={TSFE:sys_language_uid})
#select.languageField = sys_language_uid

it's possible to query all required fields but the inactivated option "select.languageField" is important for the feature "config.sys_language_mode=content_fallback". If "select.languageField" is not set this and perhaps other features are not available.

Data-Rows with the choosen language "[All]" are stored with the language-Code "-1". Therefore the query has to accept two different language-Codes: "-1" and the userdefined one.

(issue imported from #M3987)

Actions

Also available in: Atom PDF