contao/test — Issue #887: Add ability for DC_Table.php to ignore sorting column in table, when sorting on field in Parent-Child View
Author: importer
Created: 2011-11-28 17:35:12+00:00
State: open
Labels: backend, Feature

This is useful in the Catalog Extension, where the table has to dynamically switch between sort by "sorting" value and "sort" by field value. I don't want to dynamically delete and add the sorting field all the time.

I suggest a simple addition of a DCA parameter to ignoreSorting, so that the drag/drop interface is diabled and other settings are setup correctly, even when the sorting field is present in the DB, but the user wants to sort on another variable.

Currently the Parent-Child view is the only view that allows sorting by a single field, without the use of grouping.

```
function parentView()
...
$blnHasSorting = $this->Database->fieldExists('sorting', $table) && $GLOBALS['TL_DCA'][$this->strTable]['list']['sorting']['ignoreSorting'];
...
```

--- _Originally created by thyon on July 15th, 2009, at 08:57pm (ID 887)_