Flickr is still one of my favorite online services in terms of features and interface. The Uploadr tool also makes it an especially easy image-hosting solution for clients who are out in the field, taking their own photos, and updating them frequently.
Lately a few Expression Engine clients have needed to display their photostream dynamically in a way that’s compact and eye-catching, so the carousel format came to mind. Since the site isn’t live yet, here’s a sample:
It’s built on a mix of CSS, jQuery and a special module for EE. So how does it all tie together?
- jCarousel. First download the script and insert the proper links in your <head>
- eeFlickr. Go install this module for Expression Engine and read up on the custom tags it allows
- Thickbox. Install this script or substitute your lightbox script of choice, just make sure to reference it in the <a> tag below
Finally, insert the following code in your EE template:
{exp:eeflickr:photosets_getPhotos photoset_id="72157617516363606" per_page="50"}
<ul id="mycarousel" class="jcarousel-skin-tango">
{eeflickr:photosets_getPhotos_loop}
{exp:eeflickr:photos_getInfo photo_id="{id}"}
<li><a href="http://farm{farm}.static.flickr.com/{server}/{id}_{secret}.jpg" title="{title}" class="thickbox"><img src="http://farm{farm}.static.flickr.com/{server}/{id}_{secret}_s.jpg" alt="{title}" /></a></li>
{/exp:eeflickr:photos_getInfo}
{/eeflickr:photosets_getPhotos_loop}
</ul>
{/exp:eeflickr:photosets_getPhotos}
So long as you specify your photoset_id parameter in that first line, you can pull the latest from the photoset of your choice. Then specify a per_page parameter to determine how many photos to display at a time.
Note: you’ll need an API key to make the EE module work. You may also experience a delay between setting everything up and seeing the images display for the first time.
Follow me on Twitter
4:30 am
The demo is very helpful thanks for the link.
1:04 pm
Found your Carousel description through search engine. Was exactly, what I was looking for, thank you.
Regards,
Alfred (Germany)
5:09 am
Thanks for your great article
6:08 pm
Hi Darren,
Is this feature on your Mimbo Pro?
Thank you,
Doug
10:44 pm
Yep, it’s the same carousel (jCarousel).
11:45 am
So uhm… Demo is down?!
10:39 pm
Temporarily, changing hosts, will put it up again this week….
5:04 pm
Demo is now fixed.