Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: m1n0 commentedI am interested in this
Comment #2
airstarh CreditAttribution: 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?