Project

General

Profile

Actions

Bug #84252

open

makeCategorizable vs. sorting

Added by SICOR KDL GmbH about 6 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2018-03-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello,

we're using makeCategorizable for one of our tables and want its records to be sorted by title. The problem is that the entire attribute 'foreign_table_where' has to be set then, since it already has an ORDER BY sys_category.sorting appended. Now:

Idea1 (straight from the manual):
foreign_table_where = ' AND sys_category.sys_language_uid IN (-1, 0) ORDER BY sys_category.title';

Problem: This doesn't work in environments with multiple language category trees.

Idea2:
foreign_table_where = ' AND sys_category.sys_language_uid=###REC_FIELD_sys_language_uid### ORDER BY sys_category.title';

Problem: This doesn't work in environments with category trees that have sys_language_uid = -1.

Basically I think one should be able to just set the desired ORDER BY and leave the entire language handling to the framework.

No data to display

Actions

Also available in: Atom PDF