[TYPO3-mvc] Feature #6165 - The repository's findAll() shall honour "default_sortby" defined in TCA

Dmitri Pisarev dimaip at gmail.com
Thu Apr 29 12:46:18 CEST 2010


On 29.04.2010 13:47, Steffen Ritter wrote:
> Am 29.04.2010 11:43, schrieb Dmitri Pisarev:
>> I have come up to the obvious need - to sort all of my objects by title.
>> And not only findAll but also findBy* and all of the other magic methods.
>> When shall this feature request be completed and what shall I do while
>> it has not been done?
>>
>> Regards,
>> Dmitri.
> Hey Dmitry,
> this technically is not possible.
> I already tried this.
> the default_sortby does not contain the fieldname things like "sort by
> xyz ASC, zyx, DESC" etc.
> So This would have to be parsed splitted up and then used. SInce all SQL
> is allowed in TCA at this point (dirty implementation) this nearly seems
> to be impossible.
>
> regards
> Steffen
Hi Steffen,
sorry, I didn't get why it is not possible to implement. Nevertheless, 
how to do it then? How to set the default sorting in any other way? 
Don't tell me I have to rewrite all of the repositories with my own 
findAll...

Thanks!
Dmitri.


More information about the TYPO3-project-typo3v4mvc mailing list