I have a photo gallery working fine but now I am trying to make the [field_photo-title] of the image the link when the photo pops up in colorbox instead of it advancing to the next image in the gallery. In the Title field I put the absolute URL so I want this to become the field I pull. I have tried to go the Rewrite Results-->Output this file as a link and put in [field_photo-title] but the pop up image still just goes to the next image in the gallery. I want the arrow buttons to advance but I want the image itself jump to the URL I indicate in the Title. Any help would be most appreciated.

Comments

lomo’s picture

I think we would need more information about all the modules involved in the gallery you have set up. I'm not sure exactly what you are doing or exactly how you want it to work.

The link you are talking about is not to an image, but to a node related to the image? And you want the title displayed on the image in Colorbox to link to the full node display? Is that right? What modules are involved in the gallery? Is that just Colorbox and Views or are other modules required to do what you are doing?

See you at the Drupalcon!

cabplan’s picture

Hi LoMo, thanks again for trying to assist me. So the modules I am using is Colorbox and Views. I have created a album view that collects all the galleries I create. Those Galleries are using Colorbox so that when the user clicks on the image it pops up which works fine. But each image has a title field and I was to put in an absolute URL in that field and when the image pops up, I want that URL to be an active link to the URL. Right now when I click on the image it just advances to the next image in the gallery. How do I adjust that function so the click actually goes the the Image Title which is a URL that I input? Let me know if you need more information.

lomo’s picture

I believe this comes from the title="blah" attribute, which is turned into a caption in the Colorbox overlay. I don't think there is any way to have that appear as a link without some real work (i.e. some kind of workaround that does not use the title attribute. In short, I don't think this is easily done, but I suspect that if you are good with Javascript, PHP, HTML and CSS, you will be able to figure out some workaround to provide behavior like that. ;-)

Anyway, if I do understand correctly what you are trying to do, I can't think of any way to accomplish it without some custom coding, but good luck.

See you at the Drupalcon!