The goal is to build a repeated container and display the ids 1-n, and inside each container display the subids 1-n.
I’m able to repeat the ids 1-n, however I’m struggling with the subids. If I repeat them as well within the “collection repeat container”, the subids displayed in every container will be the same.
I’m looking for a way to pass the collection information to the repeat of the subcollection.
Hope it was somehow understandably explained. Let me know if you need more information
Okay, and how are you bringing these into Composer? Are they in separate data variables? How does the subcollection reference which collection it belongs to or the collection reference which subcollections are part of it?
I have them stored in two separate data variables.
However, I don’t know how to solve the reference part. Each subcollection has the collection id stored in the “name” field. Any tips in how I can implement this in a repeated list?
To find the right subcollection objects, you could use SELECT(data.subcollections, CONTAINS(item.name, repeated.current.name)) if repeated.current.name is the name of the repeated parent collection. → Select all from subcollections where the item name contains the current collection’s name