Bug #83649

Page model localization

Added by ondro no-lastname-given almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Must have
Category:
Extbase + l10n
Target version:
-
Start date:
2018-01-23
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.0
Tags:
localization,model,page type,
Complexity:
Is Regression:
Sprint Focus:

Description

I have custom page type called Magazin

Vendor\DwPageTypes\Domain\Model\Magazine {
        mapping {
          tableName = pages
          recordType = {$PAGE_TYPE_MAGAZIN}
          columns {
            magazine_date.mapOnProperty = date
            magazine_intro_text.mapOnProperty = introText
            magazine_categories.mapOnProperty = categories
            magazine_digi_news_export.mapOnProperty = digiNewsExport
          }
        }
      }

And magazin model and repository

class Magazine extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {...}

class MagazineRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {...}

Than I have FE plugin with magazine listing.
In default language all works fine. But when I create page localization (pages_language_overlay) Magazine model has not set `_languageUid` property.
And I need to list only Magazines which are translated, but all magazines are listed (including not translated).

I've also set

config.sys_language_mode = strict

but with no effect

Is it a bug or I am out of topic :)

screenshot-mayr-melnhof.test-2018-01-23-15-40-09.png View (72.7 KB) ondro no-lastname-given, 2018-01-23 17:18

History

#1 Updated by ondro no-lastname-given almost 2 years ago

Also check localized domain model

Also available in: Atom PDF