Integrating shadowbox with image gallery...

salobaas - October 25, 2009 - 00:19
Project:Image
Version:6.x-1.0-beta3
Component:image_gallery
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

integrating shadowbox in the new image gallery with views should not be difficult. The only item to be added to the <a href="image.jpg"> tag is rel="shadowbox[gallery]", but what code/template do I need to modify to have this inserted in the <a href> generated by the views module? Also it seems the title in the href is used to code the img src, but I would like here to have the image node title so it can be properly displayed by shadowbox.

I had it working in alpha6 without views.

Cheers, Fons.

#1

joachim - October 25, 2009 - 09:10

> Also it seems the title in the href is used to code the img src, but I would like here to have the image node title so it can be properly displayed by shadowbox.

That is a bug in Views, I think. Please try with the latest Views dev and report here: #591166: Bad links in image galleries (title and alt contain img tag).

For shadowbox support: you can use theme_image_display, though this will affect image nodes too. Otherwise, views lets you use a specific template for that one field, which you could try though I'm not sure what data you'll get in it.

If you can add anything you find to the handbook that would be great.

 
 

Drupal is a registered trademark of Dries Buytaert.