Closed bezin closed 3 years ago
This was actually simplified in the core itself: https://github.com/contao/contao/pull/1468
With removing 'orderField' => 'orderSRC'
and adding 'isSortable' => true
you should get the result you need.
Uh, nice, did not know that. Even better :-) Thanks for the hint 👍
The best part is, this makes sortable fileTree
s now also available inside list
elements. This was not possible with orderField
.
Ah, now I know why I did not now about it: It is only available from 4.10 ;-)
Hi there and once again thank you for this extension :-)
I would like to suggest a little improvement: I have a file tree widget in one of my custom elements that has an orderField. However, RSCE does not consider this when handing the field value to the template (as Contao does itself in the core).
It would be nice though, if RSCE would consider
orderField
and hand the images to the template in the correct order.Now one needs to deserialize orderSRC and handle the binary uuids manually manually in the template:
I would prefer if
$this->partnerLogos
is sorted byorderField
right away:I know this is the same behaviour as in the core, but RSCE simplifies so many things that I would appreciate this, too :-)
Happy to her your thoughts.
Cheers