I’m building a photo gallery where the index page is an archive of all entries, shown as thumbnails. Clicking on a thumbnail takes you to a single-entry page which shows the photo.
Say there are 10 photos total, and you click on the third one—I would like the single-entry page to display “3 of 10,” with links to the next and previous entries.
Next/previous pages are no problem, the total entry count I figure I can do with a query call or a separate exp:channel call, but the entry’s order I can’t figure out. The closest thing I can think of would be to loop through each entry, add to a counter, stop when I match the entry ID, display the counter. But it seems like a lot of overhead.
Any ideas?