Explicit sorting of prevalues in property editors #13065
Closed
bjarnef
started this conversation in
Features and ideas
Replies: 1 comment
-
Fixed in #13075 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When defining prevalues for a property editor using
ConfigurationEditor
and theConfigurationField
attribute it seems the prevalues are ordered by the index, but simple enough to re-order the fields in the class.However when inheriting from another configuration, e.g.
ValueListConfiguration
, which for instance theDropDownFlexibleConfiguration
inherits https://github.com/umbraco/Umbraco-CMS/blob/v10/contrib/src/Umbraco.Core/PropertyEditors/DropDownFlexibleConfiguration.cs#L3 it seems there isn't a property to explicit set the sort order like we are familiar with in Content Apps and Dashboards.Sometimes developers want to group the configuration fields, so it may not always make sense to place inherited "Items" first or last.
I found a way to sort the Fields alfabetically by
Key
though:However I would be great is we explicit could set the sort order or weight instead maybe similar to sort order on
[Tree]
attribute:https://github.com/umbraco/Umbraco-CMS/blob/v10/contrib/src/Umbraco.Web.BackOffice/Trees/TreeAttribute.cs#L45-L48
Beta Was this translation helpful? Give feedback.
All reactions