Okay, let me try to explain this as best as possible!
I am building a website to help couples find wedding photographers. Many couples want to find photographers who have experience at their specific hotel.
On my website, I want couples to browse photo galleries organized by hotel. For instance, one photo gallery would have 100 images from the Hyatt Hotel. Each image would be uploaded by a different photographer. So, couples could find their hotel, and browse images taken at that hotel from different photographers. (Remember the goal is to help couples discover photographers.)
I’ve created most of the database collections to build this. I’ve learned how to build a dynamic category page that only shows the photos from each venue presented in a gallery grid.
The database collection and the input form have these fields:
Photographer Name // Hotel Name // Image 1
HOWEVER… I can’t figure out how to create a dynamic index of the hotels. There will eventually be hundreds of hotels in the database, so I want the code to automatically sort them and present them to couples.
Example:
Couple visits the website and sees a list of all the hotels in the area from the database. When they click on the hotel name, they are directed to a photo gallery with all the images in the database taken at that hotel.
Dynamic list:
Hyatt
Marriott
Four Seasons
…and so on.
The page should pull the names of the hotel from the database… but the issue is there are many duplicates in the database. How can the index only show each hotel name ONCE?
Please help! Thanks!!