Review main Merged

3289[FEATURE] Hide translated records from List module

Stefan Geith CR +2 V +2 Easy +14 −0 updated 06/03/13, 20:49

Commit message

Add the new TSconfig option
  mod.web_list.hideTranslations = *
or
  mod.web_list.hideTranslations = list,of,tables

For those tables, only the records of the default language are shown in
the List module. All translations are hidden.

The 'Localization view', still shows all records, including translated
records.

Review

  • Code review CR +2
    • Steffen Gebert +2
  • Verified V +2
    • Steffen Gebert +2

Issues 1

Files 2

Review log 46

Show 21 earlier messages
  1. Stefan Geith uploaded patch set 2 07/31/11, 18:39

  2. Stefan Geith uploaded patch set 3 07/31/11, 18:39

  3. Stefan Geith uploaded patch set 4 07/31/11, 18:39

  4. Dmitry Dulepov commented on patch set 3 07/31/11, 18:39

    Fails; I would prefer that you didn't submit this Using undefined variable $hideTranslation in typo3/class.db_list.inc: causes warnings. Please, make sure you always initialize variables. Using undefined variable $TCA (must be $GLOBALS['TCA']): the patch does not work with master branch at all.
  5. Georg Ringer commented on patch set 4 2 comments 07/31/11, 18:39

    I would prefer that you didn't submit this
  6. Stefan Geith uploaded patch set 6 07/31/11, 18:39

  7. Stefan Geith uploaded patch set 7 07/31/11, 18:39

  8. Stefan Geith uploaded patch set 8 07/31/11, 18:39

  9. Steffen Gebert commented on patch set 5 3 comments 07/31/11, 18:39

    I would prefer that you didn't submit this
  10. Steffen Gebert uploaded patch set 5 07/31/11, 18:39

  11. Steffen Gebert commented on patch set 6 07/31/11, 18:39

    I would prefer that you didn't submit this Please have a look at Patch Set 5 first
  12. Philipp Gampe commented on patch set 8 1 comment 07/31/11, 18:39

    Fails Please write a setter for hidetranslations
  13. Philipp Gampe commented on patch set 8 07/31/11, 18:39

    Looks good to me, but someone else must approve
  14. Philipp Gampe commented on patch set 8 07/31/11, 18:39

    I changed the protected to public and it works :)
  15. Stefan Geith uploaded patch set 10 07/31/11, 18:39

  16. Stefan Geith commented on patch set 11 07/31/11, 18:39

    ... But I'm fine with inList also, because I only use hideTranslations=* ...
  17. Stefan Geith uploaded patch set 11 07/31/11, 18:39

  18. Stefan Geith commented on patch set 11 07/31/11, 18:39

    I think it should work the same way as hideTabels. And the Opion hideTabels works with trimExplode.
  19. Steffen Gebert uploaded patch set 12 07/31/11, 18:39

  20. Steffen Gebert commented on patch set 12 V 0 07/31/11, 18:39

    by team member; Looks good to me, approved Just optimized the commit message. Adding pending documentation.
  21. Philipp Gampe uploaded patch set 9 07/31/11, 18:39

  1. Philipp Gampe commented on patch set 9 07/31/11, 18:39

    Verified; Looks good to me, but someone else must approve Ok, I just changed it to public and pushed the change. Works for me now.
  2. Philipp Gampe commented on patch set 10 07/31/11, 18:39

    Fails
  3. Philipp Gampe commented on patch set 10 07/31/11, 18:39

    This is not the same as patch set 9. This fails now if you have spaces between your tables: # this works mod.web_list.hideTranslations = list,of,tables #this worked with old patchset too, but does not now mod.web_list.hideTranslations = list, of, tables
  4. Philipp Gampe commented on patch set 11 07/31/11, 18:39

    Verified; Looks good to me, but someone else must approve Now I like it.
  5. Georg Schönweger commented on patch set 4 07/31/11, 18:39

    Looks good to me, but someone else must approve
  6. Arvid Jakobsson commented on patch set 1 07/31/11, 18:39

    I would prefer that you didn't submit this hideTranslation / hideTranslations is used inconsistently. I prefer hideTranslations though.

    class.db_list.inc:121

    Tables misspelled. Tabels -> Tables. $hideTranslations used in other places, should be hideTranslations here as well (with s!)

    class.db_list.inc:476

    $this->hideTranslation without S is used here as well.

    index.php:240

    hideTranslation or hideTranslations?
  7. Arvid Jakobsson commented on patch set 2 07/31/11, 18:39

    Looks good to me, but someone else must approve
  8. Arvid Jakobsson commented on patch set 3 07/31/11, 18:39

    Looks good to me, but someone else must approve
  9. Jo Hasenau commented on patch set 9 07/31/11, 18:39

    I would prefer that you didn't submit this We should use t3lib_div::inList instead of doing in_array after t3lib_div::trimExplode
  10. Jo Hasenau commented on patch set 10 07/31/11, 18:39

    Verified; Looks good to me, but someone else must approve
  11. Jo Hasenau commented on patch set 11 07/31/11, 18:39

    Verified; Looks good to me, but someone else must approve
  12. Jo Hasenau commented on patch set 11 07/31/11, 18:39

    Verified; I would prefer that you didn't submit this It works now with spaces, but IMHO it would be better to just not allow spaces to be entered in the list of tables instead of using array functions just to make them possible.
  13. Mr. Jenkins commented on patch set 1 07/31/11, 18:39

    Fails; I would prefer that you didn't submit this Build Failed http://ci.typo3.org/job/typo3-v4-core-gerrit/1140/ : FAILURE
  14. Mr. Jenkins commented on patch set 2 07/31/11, 18:39

    Fails; I would prefer that you didn't submit this Build Failed http://ci.typo3.org/job/typo3-v4-core-gerrit/1150/ : FAILURE
  15. Mr. Jenkins commented on patch set 3 07/31/11, 18:39

  16. Mr. Jenkins commented on patch set 4 07/31/11, 18:39

  17. Mr. Jenkins commented on patch set 5 07/31/11, 18:39

  18. Mr. Jenkins commented on patch set 6 07/31/11, 18:39

  19. Mr. Jenkins commented on patch set 7 07/31/11, 18:39

  20. Mr. Jenkins commented on patch set 8 07/31/11, 18:39

  21. Mr. Jenkins commented on patch set 9 07/31/11, 18:39

  22. Mr. Jenkins commented on patch set 10 07/31/11, 18:39

  23. Mr. Jenkins commented on patch set 11 07/31/11, 18:39

  24. Mr. Jenkins commented on patch set 12 07/31/11, 18:39

  25. Steffen Gebert merged patch set 12 07/31/11, 18:39