Actions
Bug #70498
closedThe CategoryRepository should obey the sorting field
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-10-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Needs Decision
Description
sys_category records have a sorting field but CategoryRepository ignores it by default.
This is missing in the CategoryRepository:
/** * @var array */ protected $defaultOrderings = array( 'sorting' => QueryInterface::ORDER_ASCENDING );
Updated by Benni Mack over 4 years ago
- Sprint Focus changed from PRC to Needs Decision
Updated by Georg Ringer over 4 years ago
- Status changed from New to Needs Feedback
I have checked that and yes, there is no default sorting but the sorting column itself doesn't help you much as you need the parent column as well.
Given the tree
- Cat 1 -- Cat 1.a -- Cat 1.b - Cat 2 -- Cat 2.a
if you need to render that, you need to first build the tree and only within the same level AND same parent node, the sorting column can be used.
Therefore I am closing this issue.
Updated by Georg Ringer over 4 years ago
- Status changed from Needs Feedback to Closed
Actions