Sorting & Repeater #2710
cupcakearmy
announced in
Archive
Replies: 1 comment 4 replies
-
Btw, since the repeater also supports sorting, the relational repeater would solve basically both problems |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I have a question on how to model certain situations in Directus.
Basically I have 2 scenarios which I don't know how to handle:
Sort multiple images.
Imagine a collection
products
that has a fieldphotos
. There is thefiles
field type, but one can only select multiple photos, but not decide on the order of them.Two Collections. One for recipes and one for ingredients.
The problem: Assign multiple ingredients to one recipe, with the corresponding amount.
e.g.
Recipe:
Title: Pizza
Ingredients: [ {someIngredientId, 200g}, {someOtherIgredientId, 5g}, ... ]
One way is probably to create a third collection with simply one ingredient and a text field and assign multiple of that to the recipe collection. But this seems a bit... wrong.
I know there is the relational repeater coming in v9 but i don't know what the timeline on that is :)
Any suggestions/best pratices?
Thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions