Active
Project:
Galleria
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
13 Jul 2010 at 12:30 UTC
Updated:
8 Sep 2017 at 10:11 UTC
Hi, I noticed the option to choose lightbox2 or jlightbox, so I thought of adding the Fancybox as well, http://drupal.org/project/fancybox,
Basically, all it needs is a simply jquery call
Drupal.behaviors.initFancybox = function() {
var settings = Drupal.settings.fancybox;
if (settings && settings.selector.length) {
$(settings.selector).fancybox(settings.options);
}
$('.class').fancybox(settings.options);
}
With the right .class for the image link.
Haven't tested this yet, will come back here once I have done so.
Might as well add thickbox etc. too.
Comments
Comment #1
m1n0 commentedI am interested in this
Comment #2
airstarh commentedDears.
Could you please help me, what to do and where to go.
I tested so much and in so different ways, but still have not found a correct way.
I am using D7
So I attached fancybox through .info file
And added such code, but only fadeIn/Out work.
I can con find a right way to start fancybox plugin. ((( What to do?