[TYPO3-core] RFC: #15845: Sorting in language dropdown is hardcoded

Marc Bastian Heinrichs typo3 at mbh-web.de
Wed Sep 29 23:21:48 CEST 2010


Am 29.09.10 10:17, schrieb Georg Ringer:

> How to test:
> 1) Create some languages
> 2) Switch to the page module and see the sorting by title.
> 3) Apply the patch and insert something like
> ------
> $GLOBALS['TCA']['sys_language']['ctrl']['sortby'] = 'uid DESC';
> ------
> into extTables.php
> 4) Clear cache, reload page module and see the differrent sorting

The field in the database, which is used by the core to save the order
for the records - typically the field 'sorting' - is defined by
$GLOBALS['TCA']['sys_language']['ctrl']['sortby'].
When you define uid, as above, the uids of sys_language table will be
overwritten by the values of the sorting algorithm, when you will change
the sorting of the language records in the backend, which will be
possible by defining 'sortby' as above.

So -1 on reading

Using the configuration option 'default_sortby' could be a solution.
But you also have to respect the option 'sortby', if there is
an extention which adds a column to sys_language for manually sorting in
the backend and defining 'sortby'.


Regards,
Marc Bastian


More information about the TYPO3-team-core mailing list