Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Episode 140: Photo Gallery Plugins, Admin UI, Font Sizing

Pedro Henrique Knoll Giacometo
Pedro Henrique Knoll Giacometo
6,669 Points

Photoswipe - Show 5 images, then use the “show more images” button

I'm working on a Yelp similar rails app where a "photoswipe" gallery will be used to display dinamic images according to venue. I would like to show the first 5 images, and then a "see all the images" link. Any idea?

Justin Goldby
seal-mask
.a{fill-rule:evenodd;}techdegree
Justin Goldby
Full Stack JavaScript Techdegree Student 12,754 Points

What about using a node scraper to sniff the images from the gallery, add it to an array and only display the first 5 index values from that array, pushing any other index values into a separate array that is accessed with the "see all the images" link?

Pedro Henrique Knoll Giacometo
Pedro Henrique Knoll Giacometo
6,669 Points

Justin Goldby ... i'm pretty new to web development. Do you have any material to recommend me?