[TYPO3-dev] 6.2: Any News about Sorting 1:n Child Records in Extbase?

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Wed Sep 10 23:49:21 CEST 2014


He all

I wonder if anything has changed in 6.2 concerning the order of a 1:n
related property / the children of an object?

E.g. when using "for each" viewhelper in a fluid template like

  <f:for each="{city.families}" as="family">
      {family.name}
  </f:for>

How to order this, for example, by the family names? TCA sorting configs
are disregarded in Extbase/Fluid.

So i have to use a sorting viewhelper or do the sorting in the getter
method of the parent objet.
Both is not so nice and probably slow, when having a lot of child
records. It would be nicer to have the sorting done by the DB query
(like in backend)...

Is this still the same in TYPO3 6.2?

Cheers,
Till



More information about the TYPO3-dev mailing list