When two slider (from two different views) are displayed on the same page the second gets captions from the first. This is because caption id is constructed only on field name, and if the field name is the same in both views the ids overlaps. I've wrote a patch to add the view's name to the created ids.
| Comment | File | Size | Author |
|---|---|---|---|
| views_nivo_silder_many_same_page.patch | 421 bytes | lussoluca |
Comments
Comment #1
toncacz commentedThis patch change layout but Javascript still ignore more than one Nivo slider in page. Other sliders have the same caption as first :-(
Is anyone know how to fix it?
Comment #2
toncacz commentedBetter solution:
It is better in case when we have the same View (view->name) with more Blocks -this code set the caption id with the current block name.
Comment #3
tusharbodke commentedif we use the views display id to differentiate the title for per view per image,
i am not sure Will it also work for the different view and having same display id?
Views 'A' and views 'B'(views_nivo_slider)with the display id 'block_1'. Showing on same page
can they pick there title correctly using above mention changes?
Comment #4
ckngThanks, fixed.
Comment #5
ckngComment #6
ckngMark #1042976: is it possible to have more than one nivo slider block per page? as duplicate of this.
The patch is http://drupalcode.org/project/views_nivo_slider.git/commitdiff/dce65d293...
Comment #7
ckng