I have got several "Project"-Pages and want to show some of them in a custom order on my "Home"-Page.
Therefore I use the SortableGridField-Module in combination with the GridFieldConfig_RelationEditor:
public static $has_many = array(
'Highlights' => 'Project'
$fields = parent::getCMSFields();
$gridField = new GridField('Highlights', 'Highlight Projects', $this->Highlights(), $conf);
public static $db = array(
public static $default_sort = 'HighlightSortOrder';
It seems to work sometimes, but just after using the preview-Button in the admin-area.
There is also the problem, that all "Project"-Pages which are linked as Highlights, are now Subpages of the "Homepage" in the Sitetree.
Have you got an idea how to fix these problems or is there a better approach?