[TYPO3-mvc] defaultOrderings on ChildObjects

Thomas Mammitzsch thomas at visualworx.de
Wed Jun 22 13:17:11 CEST 2011


ok, i found out this:

set foreign_sortby => 'date_start' in TCA config (type inline) works for 
showing the right order in the frontend, but unfortunately hides the 
date_start field in the childs inline form inside the parent form in the 
backend. Editing this directly, without IRRE shows also the date_start 
field. Unfortunately i depend on both, working sorting in FE and BE and 
also Inline record editing.
Is it an IRRE bug or can i force extbase in an other way to sort correctly?

regards, Thomas


Am 22.06.2011 11:11, schrieb Thomas Mammitzsch:
> Hi list,
>
> i have a strange behaviour when child objects are loaded automatically
> by the parent object (because its a field of the parent object).
> The child objects are not sorted as it should. In the child object
> repository i have the following:
>
> protected $defaultOrderings = array(
> 'date_start' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING
> );
>
> But its not sorted like that, its simply selected in the order the rows
> were created. Am i missing something? Shouldn't it work?
>
> regards, Thomas



More information about the TYPO3-project-typo3v4mvc mailing list