Issue Feature Closed

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

Gerrit Kamp 02/15/07, 23:03 updated 05/04/13, 14:27

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.