Message of the day:
SS 4.4.0-RC1 is out. Changelog: https://github.com/silverstripe/silverstripe-framework/blob/4.4/docs/en/04_Changelogs/4.4.0.md
SilverStripe 4 related information and questions.
so not sure if the
ManyMany syntax would work for default sort
re (1) yeah - totally - I do remember something similar
- private static $defaults = [
- 'ManyMany[ExtraFieldName]' => 'value',
not sure #1 is a true issue, more of a habit from older SS versions that we never broke out of lol
@muskie9 you are raising a LOT of interesting points here 😉 (1) We should not use Sort? ... That is a big change. Lets avoid it if we can, but it is noted. (2) are you saying that we should add default_sort to the many_many_extraFields ... that sounds awesome! I will research.
we just found out you can set defaults for the
many_many_extraFields... was kind of mind blowing, so wonder if the same schema would work for default sort
we've run into
Sort causing some issues, so we'll use
SortOrder as the field name just to be safe
- public function DocumentsList()
- return $this->Documents()->sort('Sort');
Yeah - @muskie9, you might be right. Funny thing is that of course that is required (the same name) to make the Sortable work.