[TYPO3-mvc] Displaying localized records?

Mario Rimann typo3-coding at rimann.org
Tue Dec 13 10:50:56 CET 2011


Hi

We're having an Extbase Plugin that should show articles from the DB in
a multi language setup. In the BE, the records can be localized properly.

In the Frontend, the SQL query that get's executed is always checking
for "sys_language_uid IN (0, -1)" which shows the wrong records.
Alltough localized records are shown localized.

But what we need to show is a list of records that match one of those
conditions:
- records that are generated in the current language
- records that are set to "all languages" (don't exist in our setup)
- records that are generated in an other language, but a translation in
the current language exists

This would exclude records in the default language when the page is
shown in a different language (at the moment, those are shown, too).

Any hint what we're doing wrong and where to look at? We already checked
our Repository class and there's nothing added/changed against the
default (we're currently using a findAll() method that just overrides
the ordering - nothing more).

TYPO3 4.5 LTS with Extbase 1.3.0

Cheers,
Mario


More information about the TYPO3-project-typo3v4mvc mailing list