Feature #64197

Add support for foreign_default_sortby on TCA inline fields

Added by Jan Kornblum almost 6 years ago. Updated 19 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Extbase
Start date:
2015-01-08
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The origin issue has been closed (see below). But shouldn't this feature be implemented at all? I've seen several posts across the internet from people missing this feature...

--- Original issue ---

Issue #50439 has been updated by Alexander Opitz.

Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this ticket.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
----------------------------------------
Feature #50439: Reopened: Add support for foreign_default_sortby on TCA inline fields
http://forge.typo3.org/issues/50439#change-243018

Author: Jan Kornblum
Status: Closed
Priority: Should have
Assigned To:
Category: Extbase
Target version:
Has patch: No
Tags:
Complexity:

Persistence needs support for sorting child records by foreign_default_sortby, see http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.2.0/view/4/2/#id4431730

Won't this be implemented at all? Without the possibility of sorting children (object storage) nearly each domain model needs to be an aggregate root!?

Imagine you would like to output the following list in fluid (categories <1:n> seminars <1:n> events, where the children are lazy object storages in the parent):

- Categories (Alphabetical)
--- Seminars (Alphabetical)
------ Events (By date)

Currently this seems only to be possible by using something like FED DataSortViewHelper. The "usort" method in the model didn't work in my case because of some boolean issues i didn't figure out.

Is there really no possibility to extend extbase to respect a TCA "foreign_default_sortby" annotation?


Related issues

Related to TYPO3 Core - Bug #27659: sorting by $TCA foreign_sortby vs. foreign_default_sortby Closed 2012-07-22

History

#1 Updated by Jan Kornblum over 5 years ago

Am i wrong with my assumption that the core guys don't like to implement the feature to sorting (child) objectstorages on creation or that this is not really easy to accomplish (i've got this feeling by reading other issues)?

I've just recognized that other frameworks (e.g. like .net entity framework) don't offer the possibility to sort child objects on creation, too. But they usually offer the possibility to sort children in the views.

So an alternative would be, to integrate a sort-viewhelper directly into the core.

#2 Updated by Mathias Schreiber almost 5 years ago

  • Target version deleted (next-patchlevel)

#3 Updated by Gerrit Code Review about 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61487

#4 Updated by Pascal Rinker about 1 year ago

  • Related to Bug #27659: sorting by $TCA foreign_sortby vs. foreign_default_sortby added

#5 Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61487

#6 Updated by Gerrit Code Review about 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61487

#7 Updated by Gerrit Code Review about 1 year ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61487

#8 Updated by Pascal Rinker about 1 year ago

  • Target version set to Candidate for Major Version

#9 Updated by Gerrit Code Review about 1 year ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61487

#10 Updated by Gerrit Code Review about 1 year ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61487

#11 Updated by Gerrit Code Review about 1 year ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61487

#12 Updated by Rainer Becker 19 days ago

Any news on this? In TYPO3 10.4.9 the field used in foreign_sortby is still hidden from IRRE editing like described in the original ticket https://forge.typo3.org/issues/27659#note-1.

Also available in: Atom PDF