Closed (fixed)
Project:
Views Nivo Slider
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2013 at 12:54 UTC
Updated:
24 Oct 2013 at 10:20 UTC
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!!!