mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #188 from phalkunz/7601-listview-sort-by-title
Enable page sorting by Page name in list view (see #7601)
This commit is contained in:
commit
ab0dce9127
@ -702,6 +702,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
'Created' => _t('SiteTree.CREATED', 'Date Created'),
|
'Created' => _t('SiteTree.CREATED', 'Date Created'),
|
||||||
'LastEdited' => _t('SiteTree.LASTUPDATED', 'Last Updated'),
|
'LastEdited' => _t('SiteTree.LASTUPDATED', 'Last Updated'),
|
||||||
);
|
);
|
||||||
|
$gridField->getConfig()->getComponentByType('GridFieldSortableHeader')->setFieldSorting(array('getTreeTitle' => 'Title'));
|
||||||
|
|
||||||
if(!$params) {
|
if(!$params) {
|
||||||
$fields = array_merge(array('listChildrenLink' => ''), $fields);
|
$fields = array_merge(array('listChildrenLink' => ''), $fields);
|
||||||
|
Loading…
Reference in New Issue
Block a user