[TYPO3-mvc] How to sort relations?
Joerg Schoppet
joerg at schoppet.de
Wed Jun 24 11:45:46 CEST 2009
Hi,
I have the following layout:
1 Category has many Products
If someone clicks in the FE on a category all products are displayed.
This is pretty easy, because I only have to submit the category-uid and all the relations (products) are automatically fetched.
But ...
is there a way to have the products fetched in a defined order (e.g. name)?
I know, that I can do it by hand with php, but doing it directly with sql would by more meaningfull IMHO.
Digging around in the code, I think (!!!), that the magic happens within the reconstituteObjects()-method of the ObjectRelationalMapper.
But I don't know how to alter it.
Joerg
More information about the TYPO3-project-typo3v4mvc
mailing list