Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 7 Media

You're reading from   Drupal 7 Media Integrate, implement, and extend rich media resources such as images, videos, and audio on your Drupal 7 website with this book and ebook

Arrow left icon
Product type Paperback
Published in Jul 2013
Publisher Packt
ISBN-13 9781849516082
Length 260 pages
Edition 3rd Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Liran Tal Liran Tal
Author Profile Icon Liran Tal
Liran Tal
Arrow right icon
View More author details
Toc

Colorbox


We have made use of the colorbox library earlier to create a pop-up effect for pictures. This was mostly focused on galleries, but we will now learn how to integrate this feature with other parts of a Drupal website.

Colorbox for media images

When we explored the galleries and slideshows functionality before, we made use of Drupal modules which had the sole purpose of meeting that specific requirement. While we were able to meet our functionality of creating galleries, content items that we created did not benefit from the gallery pop-up view, which we later implemented with the help of jQuery's lightbox module.

To remember what this actually means, let's navigate to one of the earlier content types we created, rezepi, and take a look at how a node looked like back then. Taking as an example the Kubbeh Soup content item we added, you can clearly see that the images showing up are just as static picture contents.

By enabling the colorbox functionality for plain images too, we can also...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime