Feature: #87798 - Provide a way to sort form lists in ext:form¶
See Issue #87798
Forms in ext:form were previously not sorted in any manner, but just outputted in the order they were read from the filesystem’s directories.
Forms can now be sorted by multiple keys in either ascending or descending order.
Two new settings were introduced:
Here is an example configuration, that will sort forms by their name first and by their file uid second:
TYPO3: CMS: Form: persistenceManager: sortByKeys: ['name', 'fileUid'] sortAscending: true
Valid keys, by which the forms can be sorted, are:
- The forms name.
- The filename.
- The files uid.
The files location.
- Is the form readonly?
- Is the form removable?
- Does the form have an error?
Forms will now initially be sorted by their name first and their file uid second in an ascending order. This affects both the form list shown in the form module as well as the ordering of the available select options when creating a new form content element.
To change the sorting, you can override the configuration via YAML as described by the example above.