Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
make_id_of_nivo_slider_unique.patch | 627 bytes | noneTaken | |
Comments
Comment #1
podarokbot
Comment #2
podarok#0 commited pushed to 7.x-3.x
Thanks!!!