So, I'm looking to combine http://drupal.org/project/colorbox and Nivo Slider. When I click on an image, the image will popup in a colorbox.

Problem is the rendering of the link only works for node link-type fields.

The following patch allows me to assign a "custom link" to the link for the slider.

Example of usage:
- I have a View that displays the Images from a node
- Added a field "Global: Custom text", added the custom path/classes, and now when I click on the image in the Nivo Slider, I can open up a link to the image on display

Also, this patch makes some fixes in views-nivo-slider-view.tpl.php that caused some errors/warnings to occur.

Thanks!

Files: 
CommentFileSizeAuthor
#7 views_nivo_clickable_links.patch1.64 KBmmilo
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch views_nivo_clickable_links.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#7 views_nivo_slider_clickable_links_test_view.txt5.63 KBmmilo
#1 views-nivo-slider.patch2.79 KBmmilo
FAILED: [[SimpleTest]]: [MySQL] Invalid patch format in views-nivo-slider_0.patch.
[ View ]
views-nivo-slider.patch2.83 KBmmilo
FAILED: [[SimpleTest]]: [MySQL] Invalid patch format in views-nivo-slider.patch.
[ View ]

Comments

StatusFileSize
new2.79 KB
FAILED: [[SimpleTest]]: [MySQL] Invalid patch format in views-nivo-slider_0.patch.
[ View ]

Whoops, left a dpm() in there.

Assigned:Unassigned» pedrofaria
Status:Active» Needs review

I will make some tests and review it... community can do it to...

Thanks for your time spent on this module :)

pedro

This works whenever "Link this field to its node" or "Output this field as a link" is checked. But those options don't allow me to set the rel attribute I need for lightbox. It would be nice to also allow custom links.

Can't find the code to change in views-nivo-slider-view.tpl.php.

Any chance we can have this committed ... ?

@yan See http://drupal.org/node/607942

Thanks for the hint, mmilo. That worked.

First of all thank you for your work.

If I may I would like to have one request could you do it for lightbox trigger and colorbox trigger fields ?

Version:6.x-2.x-dev» 7.x-3.x-dev
Assigned:pedrofaria» Unassigned
StatusFileSize
new5.63 KB
new1.64 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch views_nivo_clickable_links.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Updating this for Drupal 7. Also including a test view.

This view is setup to:
- Present the images of a node, the node having a multi-value image field
- There is a Nivo Slider powered slideshow
- Clicking on an image in the slideshow will open the image (the image style can be configured in Views) in a Colorbox.

Status:Needs review» Active

bot reset

Status:Active» Needs review

bot!

Status:Needs review» Needs work

The last submitted patch, views_nivo_clickable_links.patch, failed testing.