[TYPO3-mvc] MM-Relation with ordering

Daniel Lorenz mailinglists at capsicumnet.de
Thu Oct 21 09:56:10 CEST 2010


Hi Guys,

I'm new in programming ExtBase. It's cool stuff and it will save a lot
of time after learning some more details and ways. But I have a problem
in my little project.

In the project is a mm-relation between stations and cars an an example.
I can easely show all childs (cars) of a selected station in the detail
view, but the ordering of the childs (cars) is stupid by id, not by the
given order in the mm-table. I will order these cars by the parkingside
number (each station has the same numbering format). How can I change
the ordering by default.

The next question is, how can I get the first car of a station? And if I
had a car object, how can I get the next car, if there is one.

If I understand MVC, the last two one Task should be functions in the
Models.

With best regards and thanks a lot

Daniel



More information about the TYPO3-project-typo3v4mvc mailing list