-
Notifications
You must be signed in to change notification settings - Fork 11
Setup: Sort Relations
dante di domenico edited this page Oct 24, 2024
·
1 revision
You can customize "relation sort section" sortable fields in the object view by usign settings RelationsSortFields
configuration in config/app_local.php
(or in config/projects/<projectName>.php
if you use multi project configuration).
I.e.:
'RelationsSortFields' => [
'composed_by' => [
['label' => 'Short title', 'value' => 'short_title'],
['label' => 'Title', 'value' => 'title'],
],
'composed_by_default' => 'short_title',
'part_of' => [
['label' => 'Short title', 'value' => 'short_title'],
['label' => 'Title', 'value' => 'title'],
],
'part_of_default' => 'short_title',
],
With the above example, relations composed_by
and part_of
will be sortable by short_title
and title
fields in the object view, with short_title
as default field to sort.