Collection Item Dropdown support choose multiple items #23165
Replies: 6 comments 1 reply
|
You can create a one-to-many relational field to support this - will need a corresponding separate collection to hold this relation which some might not like. However, I think this approach keeps the data model more normalized than if an array of item IDs were used. |
|
Hi @danmaze, I think this feature is an alternative to "many-to-many" scenarios. One-to-Many cannot be used alone and need another M2O to correspond with. For example, many of my collections are related to tags collection, thus results many "M2M hidden collections". If I don't want them I can just create a dropdown with multiple items. |
|
This would be helpful for a different use-case: Flows. Flow trigger modals can't select relational data apart from using a collection item dropdown. If you need multiple collection item dropdowns in your flow trigger right now, you have to use a repeater + collection item dropdown interface. |
|
Yeah, repeater + collection item dropdown is probably the only option if you prefer not creating a separate relational collection. Note that you have to select "JSON" type when creating the field to see the collection item dropdown option. cc @loongmxbt |
|
Take a look to my extension directus-extension-keep-related-collection-ids-in-csv |
|
Thanks for the suggestion! We've moved feature requests over to our public roadmap at https://roadmap.directus.io/roadmap - please submit this there instead. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Describe the Improvement
Now Collection Item Dropdown only support choosing one item. I think it's useful to enable multiple selection.
All reactions