[TYPO3-core] RFC: #15138: Its not possible to hide translated records from listview
Stefan Geith
typo3dev2010.nospam1 at geithware.de
Mon Nov 15 11:23:45 CET 2010
Hi Andreas,
Am 28.10.2010 13:35, schrieb Andreas Kiessling:
> [...]
> 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 ' ;
> }
Thank you for pointing me to that issue.
My Test-Environment had all records with a default language ...
So now, attache v3 of the patch, take your fix into account.
Tanks !
/Stefan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15138-hideTranslations-v3.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101115/3782b77e/attachment.asc>
More information about the TYPO3-team-core
mailing list