Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enable page sorting by Page name in list view (see #7601)

  • Loading branch information...
commit 436972744df5d1f1bf38efd463ef02758cc989ef 1 parent 24b0e5d
@phalkunz phalkunz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  code/controllers/CMSMain.php
View
1  code/controllers/CMSMain.php
@@ -703,6 +703,7 @@ public function ListViewForm() {
'Created' => _t('SiteTree.CREATED', 'Date Created'),
'LastEdited' => _t('SiteTree.LASTUPDATED', 'Last Updated'),
);
+ $gridField->getConfig()->getComponentByType('GridFieldSortableHeader')->setFieldSorting(array('getTreeTitle' => 'Title'));
if(!$params) {
$fields = array_merge(array('listChildrenLink' => ''), $fields);
Please sign in to comment.
Something went wrong with that request. Please try again.