I have installed the Node Gallery and Lightbox2 modules and the required dependencies. When you are viewing the gallery and click on a thumbnail I would like the image to pop up using Lightbox2 instead of the default of going to the Gallery Image node. How do I enable this? Looking at the documentation just mentioned that it was possible, but I didn't see any guide on how to do it.

Comments

jergason’s picture

In case there are others stuck with the same problem, the options for setting this up are found in your node gallery relationships. To enable, edit your node gallery relationship. You will start on one screen without the option, but if you click "Next" you move to another form with the options for enabling lightbox2 on different parts of the gallery.
Somewhat hidden, but it works.

Lars Vandergraaf’s picture

This did not work for me. Bottom line this is some logic puzzle.

I am so confused.

I have two content types with the same name Gallery. One has the type: gallery_assist. If I make content with gallery_assist I get light box to work but grid does not, just gives me a list of pictures very ugly (I have read many if not all the posts on this (I have copied garland to my sites folder and did all recommended changes.) Did not work.

The other gallery type: node_gallery_gallery (somewhere someone must be getting royalties for the word gallery). The Grid works here, but lightbox2 does not. I tried your suggestion with no luck.

Tweaking the node gallery relationship creates some interesting side effects like suddenly all my node_gallery_gallery shows up in my galley list with 0 pictures in each. Open it up and I see all the pictures there but says, there are zero pictures. I cannot manage them because it doesn't find them.

It's amazing red herrings I chased down to fix this on drupal.org. One thing that is really bizarre is under Settings to this Gallery Extra layout settings is this:

"Do not use this section please. It is intern deactivated. in the next days with version 1.7.2 it is enable and compatible with the lightboxes and the new feature "list""

Someone should tell the intern to activate it :)

jergason’s picture

That is strange. It sounds like you have some conflicting modules enabled. I only have five content types: node_gallery_gallery, node_gallery_image, page, story, and truck (a type I made with CCK). The Node Gallery module created the node_gallery_gallery and node_gallery_image type when I installed it. Do you know where the gallery_assist type came from?
To enable lightbox2 support I went to /admin/settings/node_gallery. The page listed the one default gallery relationship, called Node Gallery Default. I clicked edit, which took me to /admin/settings/node_gallery/edit/node_gallery_gallery. From there I clicked the "Next" button once and enabled the Lightbox2 display types that I needed. This worked fine for me.
What other modules do you have enabled?

comterkumar’s picture

Hi

I was also looking for this option.

Thanks a lot for you

Kumar

technicka’s picture

I have enabled the Lightbox2 Integration module for node gallery and when I go to the settings of my node gallery relationship, I see options for enabling Lightbox 2. HOWEVER, I have not been successful in doing what the original post is about:

Click on Gallery Cover > Display of Images > Click on Image > Lightbox 2 Pop up (and no display of image in a node)

Where is the setting for that?!
Thanks

mjohnq3’s picture

If you want your images to display in Lighbox2 when clicking on the thumbnails on a gallery landing page, try these settings:

On the config page for the gallery relationship in the Gallery Landing Page Setting section under Gallery Display Type: select the Thumbnails that open a Lightbox2 Gallery option button. Then select node-gallery-display in the Image Size for Lightbox2 Gallery: drop-down listbox.

technicka’s picture

Thank you so much. I have no idea why that was so easy for me to miss.

JohnnyW’s picture

I got lightbox2 to work... But the error is odd.

The error shows that there are is no picture, yet if I use the URL I can get to the picture.

Any suggestions about where to direct Lightbox2 to where pictures are?

Juan

altinke’s picture

I don't understand why it's not working, but I followed your steps and there is no lightbox on my website.

I use Node_Gallery_Display with the AD Gallery to display the images. I have Node_Gallery_assistant activated, Lightbox2 installed, etc. I did precisely what you said, but no lightbox when I click the image. It looks like nothing happens at all.

The problem is on: http://joostwever.com/cms/products/come-together

All libraries are included and I'm all out of ideas. When I add rel="lightbox" to images on other pages in the content I do get a lightbox.

Did someone encounter this problem yet and does anyone have a solution or some kind of idea to help me investigate further?

Thanks!

tax14’s picture

I used the following steps to make it work.

1. Use /admin/settings/node_gallery (Administer/Site Configuration/Node Gallery)
2. Page displays Node Gallery with the List Tab displaying a default relationship (Node Gallery Default)
3. Click the Change Settings Link to display the Node Gallery - Edit Relationship Settings page.
4. Expand Gallery Settings if required.
5. There are two sections under Gallery Settings: Gallery full(page) view settings and Gallery teaser(list) view settings. Change the Default option to ... Lightbox2 display
6. Save settings.

Now if you view the Gallery and click the thumbnail, it should display the image in a popup Lightbox2 window.

It worked for me. I hope it would work for you too.

HaloFX’s picture

I have been fighting with this also, and had done exactly what you listed. However, it didn't work until I manually flushed all the caches.

Anonymous’s picture

I tried with node gallery, light box and related modules. Uploaded images and later found that site become very slow. Disabled, uninstalled all modules and images from site. Then found a good and easy solution. PICTOBROWSER. This will show all albums from flickt and picasaweb. Uploaded images to picasaweb and shared with pictobrowser to my website. No moduless required, no need of wasting money on space for image storage. You can check it http://vision4life.in/photo/malaysia (Photo Menu). at the bottom u can see pictobrowser logo (bottom right side - just below thumbnail). If u have albums in picasaweb or flickr, u can click this logo and try, give ur username, select album, u will get embed code, copy/paste in web page, thats all. I have used another trick, created a Book page and used child pages for each album. That way it will show next and previous album link also.

stephenglasgow’s picture

This was the answer to a frustrating couple hours of searching for answers. Much appreciated!

eimtiyazahmad’s picture

one problem is there i suspect in ur case, that u have uploaded files larger than 1MB as per default restrictions.

Anonymous’s picture

Thanks for your reply in details. I was searching for this for 2/3 days, at last found.
If you like, u can check it at http://vision4life.in - photo

Thanks once again for the great help.

iyerdevil’s picture

I followed full procedure.
in the part where :
"There are two sections under Gallery Settings: Gallery full(page) view settings and Gallery teaser(list) view settings. Change the Default option to ... Lightbox2 display "

i am not getting lightbox2 as an option. .
can we change some .tpl.php file (views--view-[my viewsname].tpl.php) ... ,can anyone please help...

Dukuu’s picture

Looks like that to do sequence is not actual any more.
Maybe it's better to open an issue?

abhishek77’s picture

I am facing the same problem. did you manage to solve this issue? Please let me know how you managed this?