I have a views Nivo slider set up. I am trying to use the Thumbnails with Views Field feature. I have a content type with two image fields, one for the main slider image and one for the thumbnail. The thumbnail is showing up as a broken image. It is actually not rendering in the html code at all. I am using the 2.7.1 plugin.

Code Example & Views Examples attached below.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aaronortega’s picture

Issue summary: View changes
aaronortega’s picture

Issue summary: View changes
aaronortega’s picture

Fixed the issue from line 170 to 191 on the d7 3.0 dev branch

      case $style['controlNavThumbsField']:
        if ($style['controlNav'] == 'thumbsField') {
          $field_image_name = "field_{$style['controlNavThumbsField']}";
          $field_output = $row->{$field_image_name}[0]['raw']['uri'];

					

          if (!empty($style['controlNavThumbsICField'])) {
            $turl = image_style_url($style['controlNavThumbsICField'], $field_output);
          }
          else {
            $turl = file_create_url($field_output);
          }

          if ($style['nivo_version'] == '2.7.x') {
            $attributes = array('rel' => $turl);
          }
          else {
            $attributes = array('data-thumb' => $turl);
          }
        }
        break;
DD 85’s picture

Thank you. The above code bug fixes.

podarok’s picture

Status: Active » Patch (to be ported)
docans’s picture

has this been ported?

DD 85’s picture

No, need patch.

docans’s picture

From my end nothing seems to work well. Which are the patches or codes i need to apply so i can have nivo slider working again. there seems to be may patches and code to add.

Can i please get the list of the necessary patches and code to add so it can work for me

Thanks