Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 436972744df5d1f1bf38efd463ef02758cc989ef 1 parent 24b0e5d
Saophalkun Ponlu authored August 28, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  code/controllers/CMSMain.php
1  code/controllers/CMSMain.php
@@ -703,6 +703,7 @@ public function ListViewForm() {
703 703
 			'Created' => _t('SiteTree.CREATED', 'Date Created'),
704 704
 			'LastEdited' => _t('SiteTree.LASTUPDATED', 'Last Updated'),
705 705
 		);
  706
+		$gridField->getConfig()->getComponentByType('GridFieldSortableHeader')->setFieldSorting(array('getTreeTitle' => 'Title'));
706 707
 
707 708
 		if(!$params) {
708 709
 			$fields = array_merge(array('listChildrenLink' => ''), $fields);

0 notes on commit 4369727

Please sign in to comment.
Something went wrong with that request. Please try again.