[SOLVED][Drupal Colorbox] How to get Colorbox to open pictures from Photobucket as a gallery

| | 1 min read

Many Drupal wanted how to know get Colorbox to open pictures from Photobucket or a similar external site as a gallery. If you are facing the same question with Colorbox in your Drupal site then read on to find out the solution.

Here is the solution

  • Colorbox will group all image links that has the same rel attribute as a gallery.
  • Therefore all you need to do is to simply give the same rel attribute to the images you want to open as a gallery as shown in the example.
    <a class="colorbox" rel="photobucketgallery" href="http://i626.photobucket.com/albums/tt350/pawi81/2011_07_Watorowo/2011-07-16Watorowo030_1200px.jpg" title="Zdj?cia"><img src="http://s626.photobucket.com/albums/tt350/pawi81/2011_07_Watorowo/th_2011-07-16Watorowo030_1200px.jpg" /></a> 
    
    <a class="colorbox" rel="photobucketgallery" href="http://s626.photobucket.com/albums/tt350/pawi81/2011_07_Watorowo/2011-07-16Watorowo043_1200px.jpg" title="Zdj?cia"><img src="http://s626.photobucket.com/albums/tt350/pawi81/2011_07_Watorowo/th_2011-07-16Watorowo043_1200px.jpg" /></a>

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.