Feature #4968
Sorting by OptionLabel for Selectbox
Status: | Resolved | Start date: | 2009-10-11 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Bastian Waidelich | % Done: | 100% |
|
Category: | ViewHelpers | |||
Target version: | - | |||
Has patch: |
Description
I would like to have a sorting option for selectboxes.
sometihng like:
$this->registerArgument('sortByOptionLabel', 'boolean', 'If true, List will be sorted by label.');
and in getOptions
if ($this->arguments->hasArgument('sortByOptionLabel') && $this->arguments['sortByOptionLabel'] === true) {
asort($options);
}
Associated revisions
[+FEATURE] Fluid (ViewHelpers): Now select view helpers can sort options by label if "sortByOptionLabel" attribute is true. Thanks to Markus Dreyer! This resolves #4968
History
#1 Updated by Bastian Waidelich almost 6 years ago
- Project changed from Extbase MVC Framework to TYPO3.Fluid
- Category deleted (
432)
#2 Updated by Bastian Waidelich almost 6 years ago
- Category set to ViewHelpers
- Status changed from New to Accepted
- Assigned To set to Bastian Waidelich
- Branch set to v4 + v5
#3 Updated by Bastian Waidelich over 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r3514.