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!
Comment | File | Size | Author |
---|---|---|---|
#7 | views_nivo_clickable_links.patch | 1.64 KB | mmilo |
#7 | views_nivo_slider_clickable_links_test_view.txt | 5.63 KB | mmilo |
#1 | views-nivo-slider.patch | 2.79 KB | mmilo |
views-nivo-slider.patch | 2.83 KB | mmilo | |
Comments
Comment #1
mmilo CreditAttribution: mmilo commentedWhoops, left a dpm() in there.
Comment #2
pedrofaria CreditAttribution: pedrofaria commentedI will make some tests and review it... community can do it to...
Thanks for your time spent on this module :)
pedro
Comment #3
yan CreditAttribution: yan commentedThis 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
.Comment #4
mmilo CreditAttribution: mmilo commentedAny chance we can have this committed ... ?
@yan See http://drupal.org/node/607942
Comment #5
yan CreditAttribution: yan commentedThanks for the hint, mmilo. That worked.
Comment #6
mist CreditAttribution: mist commentedFirst 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 ?
Comment #7
mmilo CreditAttribution: mmilo commentedUpdating 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.
Comment #8
podarokbot reset
Comment #9
podarokbot!