Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow manually setting the order in the collection chooser dropdown in the builder interface #24250

Open
schtiewen opened this issue Dec 18, 2024 · 3 comments
Labels

Comments

@schtiewen
Copy link

Describe the Bug

Hi,

i've a builder with round about 30 collection. e.g. A, D, H, B, F, Z, M ... (not ordered list)
on the content page, here is the dropdown field with the same order.

is it possible to sort the output? (human readable) maybe by the collection name as a default sort order?
i would say, it make no sense, that the output dropdown has the same order like the collection field inside the setup

Thanks
:)

To Reproduce

create a new builder field with many collections as Related Collections

Directus Version

v11.3.2

Hosting Strategy

Self-Hosted (Docker Image)

Database

No response

@rijkvanzanten
Copy link
Member

The dropdown currently should follow the list as it's configured in the DataModel settings. Is that what you're suggesting? Or are you saying it'd be neat if there was an interface option to sort them manually?

@schtiewen
Copy link
Author

But inside the Datamodel, there is no option to do a manually sort. If i have e.g. 10 items inside and add a new "a" collection Item, then the "a" is in on the last position. Or is this wrong and i dont know, how could i do an order? :)

I would say, the second option, (manuel sorting, or alphabetic) inside the Interface would be an option.

@rijkvanzanten
Copy link
Member

Ahh I see what you're saying. It's now ordered by the order in which the collections where selected in the relationship settings, which isn't the most user friendly

@rijkvanzanten rijkvanzanten changed the title Builder (M2A) - Related Collections - no possibility to sort the collection for dropdown output Allow manually setting the order in the collection chooser dropdown in the builder interface Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants