In the template_preprocess_views_nivo_slider_view() function an id for the nivo slider div is created:

  $vars['views_nivo_slider_id'] = 'views-nivo-slider-' . $view->name . '-' . $view->current_display;

In some cases this will not create unique id's. For example when having a view containing other views that use the nivo slider. You can achieve this by using the EVA module.

Anyway, to prevent duplicate id's, they should be created like this:

  $vars['views_nivo_slider_id'] = drupal_html_id('views-nivo-slider-' . $view->name . '-' . $view->current_display);

I've created a patch for this.

CommentFileSizeAuthor
make_id_of_nivo_slider_unique.patch627 bytesnoneTaken
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

podarok’s picture

Status: Patch (to be ported) » Needs review

bot

podarok’s picture

Status: Needs review » Fixed

#0 commited pushed to 7.x-3.x
Thanks!!!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.