[TYPO3-mvc] *Store* sorting a of relation
Dirk Rauscher
dr_typo3 at itb-institut.de
Fri Mar 2 13:06:16 CET 2012
Hi Lorenz,
afaik the sorting is handled by TCA. In the 'ctrl' section of your
documents table you can set the 'sortby' or 'default_sortby' property.
Or did I get you wrong?
Dirk
Am 21.02.2012 10:26, schrieb Lorenz Ulrich:
> Hi everyone
>
> I just wanted to ask if anyone figured out how the sorting of a relation
> could be stored in the mm table.
>
> From the non-Extbase POV:
> When I e.g. attach DAM documents to a tt_news entry, I can sort these
> documents and the sorting is stored in tx_dam_mm_ref in "sorting_foreign".
>
> Now I would like to do the same in an Extbase extension: Add "documents"
> to a "group of documents" and store the sorting order in the mm table.
> But I can't find any (proper) way to pass the sorting value to Extbase.
> And it's impossible to just set the sorting manually after adding the
> relations because they (all of them) are deleted and newly written each
> time one relation is added or deleted.
>
> Is this such a weird scenario or is it known to be a missing feature?
>
> Thanks for any input on this topic and best regards,
>
> Lorenz
More information about the TYPO3-project-typo3v4mvc
mailing list