[TYPO3-mvc] Language overlay + records without default language

Georg Ringer mail at ringerge.org
Fri Oct 1 09:23:42 CEST 2010


Hi,

I am currently having a problem with the language overlays from extbase.
Following example:
- record1 in default language
- record2 in language#1, translated from record1
- record3 in language#1, without default record

What I need:
I need to get 2 records in language#1:
- record2 as overlay (including the mergeIfNotBlank-settings in tca)
- record3

I tried several ways:
1) Default behaviour:
I get record2 with a perfect overlay

2)
->setRespectSysLanguage(FALSE);
$query->equals('sys_language_uid', $GLOBALS['TSFE']->sys_language_uid)

I get record2 *without* overlay + record3

3)
->setRespectSysLanguage(FALSE);
$query->logicalOr(
	$query->equals('sys_language_uid', $GLOBALS['TSFE']->sys_language_uid),
	$query->equals('sys_language_uid', 0)
)

I get record2 with overlay, record2 without overlay and record3.

======================

Of course there is also an additional option "All languages" but I don't
need that (yet).

Thanks for every help
Georg


More information about the TYPO3-project-typo3v4mvc mailing list