Setting header for sort column with $ summary_fields

I want to set the column heading for the sort column (in $summary_fields ) for the GridField .

I can not do something like:

 static $summary_fields = array('Reorder' => 'Sort'); 

Although I can use the $summary_fields method to reorder columns, I cannot use it to set the sort column header.

I am using the GridFieldOrderableRows component from the Silverstripe Grid Field Extensions Module .

Sample screen with a GridField column header

+5
source share
1 answer

It is now possible . We can set the column heading by setting the Reorder label in the $field_labels variable:

 private static $field_labels = array( 'Reorder' => 'Sort' ); 
+6
source

All Articles