Index: typo3/alt_db_navframe.php
===================================================================
--- typo3/alt_db_navframe.php (revision 6849)
+++ typo3/alt_db_navframe.php (working copy)
@@ -123,6 +123,7 @@
$this->pagetree->addField('nav_hide');
$this->pagetree->addField('nav_title');
$this->pagetree->addField('url');
+ $this->pagetree->mountSortField = $BE_USER->getTSConfigVal('options.pageTree.mountSortField');
// Temporary DB mounts:
$this->initializeTemporaryDBmount();
@@ -212,9 +213,9 @@
$flashText = '
' .
$LANG->sl('LLL:EXT:lang/locallang_core.xml:labels.temporaryDBmount',1) .
- '
' .
+ '
' .
$LANG->sl('LLL:EXT:lang/locallang_core.xml:labels.path',1) . ': ' .
+ htmlspecialchars($this->active_tempMountPoint['_thePathFull']) . '">' .
htmlspecialchars(t3lib_div::fixed_lgd_cs($this->active_tempMountPoint['_thePath'],-50)).
'
';
@@ -226,7 +227,7 @@
t3lib_FlashMessage::INFO
);
-
+
$this->content.= $flashMessage->render();
}
Index: typo3/class.webpagetree.php
===================================================================
--- typo3/class.webpagetree.php (revision 6849)
+++ typo3/class.webpagetree.php (working copy)
@@ -74,6 +74,8 @@
var $ext_alphasortNotinmenuPages;
var $ajaxStatus = false; // Indicates, whether the ajax call was successful, i.e. the requested page has been found
+ public $mountSortField;
+
/**
* Calls init functions
*
@@ -342,6 +344,7 @@
// Init done:
$titleLen = intval($this->BE_USER->uc['titleLen']);
$treeArr = array();
+ $mountSortField = $this->mountSortField ? $this->mountSortField : 'crdate';
// Traverse mounts:
foreach($this->MOUNTS as $idx => $uid) {
@@ -375,7 +378,7 @@
$uid = $rootRec['uid'];
// Add the root of the mount to ->tree
- $this->tree[] = array('HTML'=>$firstHtml, 'row'=>$rootRec, 'bank'=>$this->bank, 'hasSub'=>true, 'invertedDepth'=>1000);
+ $this->tree[$rootRec[$mountSortField]] = array('HTML'=>$firstHtml, 'row'=>$rootRec, 'bank'=>$this->bank, 'hasSub'=>true, 'invertedDepth'=>1000);
// If the mount is expanded, go down:
if ($isOpen) {
@@ -384,6 +387,7 @@
$this->getTree($uid, 999, '', $rootRec['_SUBCSSCLASS']);
}
// Add tree:
+ ksort($treeArr);
$treeArr=array_merge($treeArr,$this->tree);
}
}