[TYPO3-core] RFC: #15138: Its not possible to hide translated records from listview

Andreas Kiessling kiessling at pluspol.info
Thu Oct 28 13:35:36 CEST 2010


Hi Stefan,

>>
>> What about records, that do not have a "default" record set? Quite
>> common for e.g. tt_news.
>
> With my patch, you can select as UserTS and/or PageTS
> a list of tables, where no translation should be shown in _normal_
> List view.
>
> Checkbox "Localization view" always switches to complete list...
>

Sorry, that does not work with the patch.
- create a news record, translate it
- create a record that is only in translated language

-> no checkbox set -> only default record shown
-> Localization view -> only default and its translation is shown

change your query to look for the transOrigPointerField and you get the 
record in the "not default" language listed.
if ($hideTranslations && $TCA[$table]['ctrl']['transOrigPointerField']) {
   $queryParts['WHERE'] .= ' AND 
'.$TCA[$table]['ctrl']['transOrigPointerField'] . ' = 0 ' ;
}

> /Stefan
>
>
>> If your goal is to reduce the big list of records, i'd prefer to make
>> the "record" foldable.
>
> No, my goal is to hide (translated) records, that should not be touched
> directly by my customers in ListView.
> There _are_ customers, that ask me each day, why there is each record
> twice (or more) ... so my goal is to simplify usage for my clients.
>
> /Stefan

Good point, but then i'd rather remove the checkbox for "Localization 
view" completely and have that setting as default.

Regards,
Andreas


More information about the TYPO3-team-core mailing list