Hi, Mark. As I understand it, you have two collections:
-
Categories
-
Photos
One of the fields in your Photo collection is a ‘reference’ or a ‘multi-reference’ field that references the Categories collection. So, when you add a photo to the Photos collection, you are able to pick one (or more) categories for that photo.
So the first thing you need to do is to create a dynamic page based on the Categories collection. You can do that by adding a dynamic page and asking Editor X to base the new page(s) on your Categories collection. Editor X will create two pages for you – an ‘all’ page and a single item page. You want the single item page – you don’t really need the ‘all’ page.
That item page will include a dataset created by Editor X that selects only a single item. I believe the default name will be something like ‘Categories Item’.
You’ve now got a dynamic page for all your Categories, along with a single item dataset.
As the next step, you can create a repeater for all the Photos that belong to the dynamic page’s category. To do that, you create another dataset based on your Photos collection. This dataset should be filtered on the current Category.
And finally, you create a repeater to act as your selector. This requires a third dataset, again based on Categories, but without a filter, because you want this repeater to include all your Categories. This is basically the same dataset and repeater that Editor X created for you for the ‘all’ page that I said you didn’t need. You’re just putting that dataset and repeater on your dynamic page rather than on a dedicated page of its own.
Make sense?
Let me know if you’ve got further questions.