I’m displaying a single item from a list. It needs to do two (seemingly incompatible?) things:
Have a NEXT button which loads the next item from the list.
Display a particular item in the list that I specify, not just the :first or :last item in the list.
The problem: I have a list of items, and I have my current item, but I have no way* of determining what the index of my current item is.
*The only way to get the index is to have a repeating group that the user navigates through until they are at the correct item, and then get the index. But the whole point of this is so the user doesn’t have to navigate through hundreds of items to view one.
I can’t use a Repeating Group because it’s not possible to load a particular item (page) in a group unless I already know that item’s index. I can’t get the item’s index because of the problem.
So then I have to use a regular, non-repeating group. But in that case, I need to get the “next” item in the list. To get the next item, I need the current item’s index, but I still can’t do because of the problem.