Issue Feature Closed

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

David Bruchmann 08/07/06, 11:21 updated 03/06/14, 09:14

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)

Reviews 0

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