Search code examples
drupal-6lightbox2

Lightbox2 and youtube videos


I'm looking for an example by which I can understand how to can I open a youtube video in lightbox2 in drupal.

Any type of help is appreciated.

Thanks


Solution

  • You can do it easily with these modules (for Druplal 7)

    • Media
    • Media Video Embed
    • Colorbox
    • Embedded Media Field
    • Media Colorbox

    Maybe some more, such as requirements, but with those modules you can get the job done. You must install all of these module. The colorbox module needs the jquery.colorbox-min.js plugin.

    What you do is this:

    1. enable "colorbox load" of the colorbox config
    2. create a new field for your content-type with an "embedded video" field
    3. in the display setting for the field, choose "thumbnail with colorbox" of something to that effect
    4. if it's not working then your missing a module or js plugin, or something is ill-configed, or you need to wait for the Media Internet field to fetch the thumbnail

    Oh, here's an example: http://sunumusic.com/videos