Feature #16993

Sorting of columns in FE Edit mode (fe_adminLib.inc)

Added by Gerrit Kamp over 6 years ago. Updated 18 days ago.

Status:Closed Start date:2007-02-15
Priority:Should have Due date:
Assignee:- % Done:

100%

Category:-
Target version:-
TYPO3 Version:4.0 Complexity:
PHP Version:
Votes: 0

Description

Team,

I made this small modification to the fe_adminLib.inc class to allow sorting of the records that are to be FE edited. It is on line 1052, in the function displayEditScreen()

if ($this->conf['edit.']['sortby']) {$sortBy = $this->conf['edit.']['sortby'];} else {$sortBy = '';}
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->theTable, '1 '.$lockPid.$this->cObj->DBmayFEUserEditSelect($this->theTable,$GLOBALS['TSFE']->fe_user->user, $this->conf['allowedGroups'],$this->conf['fe_userEditSelf']).$GLOBALS['TSFE']->sys_page->deleteClause($this->theTable),'',$sortBy);

These lines allow you to set a TS setup configuration, like:
plugin.xxxxwhatever.mthfeedit.edit.sortby = whateverfieldyoulike

Alternatively, you could add a sortBy in the query that takes the standard preferred sorting order from the TCA.

This sorting is handy for all extensions that utilize the fe_adminLib.inc.
(issue imported from #M5000)


Related issues

related to Core - Bug #19380: missing "Order by" in typo3/sysext/cms/tslib/media/script... Closed 2008-09-27

History

Updated by Alexander Opitz 19 days ago

  • Category deleted (Communication)
  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • PHP Version deleted (4)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Updated by Chris topher 18 days ago

  • Status changed from Needs Feedback to Closed
  • % Done changed from 0 to 100

fe_adminLib.inc is no longer part of the Core. Instad it is in the extension statictemplates. This extension is no longer part of the TYPO3 Core, so that this issue, should it be present there, will not be fixed within the Core, but in the extension. Apart from that I think the extension is currently completely unmaintained.

Also available in: Atom PDF