Expand / Contract thumbnail galleries
-
I’m using NextGen to show galleries of photos from sports events. There are a lot of events, so as I add galleries, my photo pages slow down.
I’d like to show a gallery of five thumbnails, but include a button the user can click on to expand the gallery to display all thumbnails in the gallery, and click to collapse the gallery again. This way my page can show many events with good speed.
Questions:
1. Does NextGen already support something like this that I don’t know about?
2. I’d be willing to code a plugin to expand/contract galleries. Is there a way to call NextGen’s already-existing AJAX pagination to expand the gallery and asychronously load it?
What I’ve already looked at:
Linking the gallery to another page that has an override shortcode to display the entire gallery. I’d do this as a fallback, but it’s inelegant and requires me to make a large number of pages, one for each event.
Making an AJAX call to override the gallery shortcode, then load and display the changed content. Again, possible but work-heavy, though it has the advantage of allowing total control over how the expansion looks.
https://discomfortzone.com/photo-gallery-triathlon-clinic-photos/
Suggestions appreciated.
- The topic ‘Expand / Contract thumbnail galleries’ is closed to new replies.