mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Enable page sorting by Page name in list view (see #7601)
This commit is contained in:
parent
24b0e5dbad
commit
436972744d
@ -703,6 +703,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