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.
I am currently using drupal 7 and I am trying to build a slideshow using the Views Slideshow and Cycle jQuery plugin. It's awesome, although I am struggling to create custom controls for it.
I wanted to create something like this:
http://nivo.dev7studios.com/
I can only use the Previous Pause Next controls. I wanted to include bullets, one for each image that would be sliding. Any suggestions?
Thanks in advance!
Comments
Comment #1
keithm CreditAttribution: keithm commentedSubscribe
Comment #2
chilibomb CreditAttribution: chilibomb commentedAnyone? Please help!
Comment #3
temaruk CreditAttribution: temaruk commentedHi!
The jQuery Cycle Plugin it uses is capable of doing what you would like.
Check here the examples: http://jquery.malsup.com/cycle/more.html?v2.23
Especially this: http://jquery.malsup.com/cycle/pager11.html
The solution might be to make additional slideshow pagers/controls, following the guidelines here: http://drupal.org/node/903244
Probably you would also need to make template for your view.
I'm also struggling with this, so hopefully after some time I can share a "solution".
Cheers
Comment #4
redndahead CreditAttribution: redndahead commentedMoving to dev so it'll show up on my list.
Comment #5
redndahead CreditAttribution: redndahead commentedThis is a pager. Here is how I would handle it without making a custom pager.
Follow the instructions here: http://drupal.org/node/1181966
Then in your css add something like this. In your code It may be something different than cycle for the id.
Comment #7
rcharamella CreditAttribution: rcharamella commentedIs there an easy way to make the numeric pager clickable, so that if you are on slide 1 you can easily go to slide 3? Like this site: http://www.rnp.org
Comment #8
tahiticlic CreditAttribution: tahiticlic commentedSame question here : how can we make the pager clickable?
Comment #9
kmadel CreditAttribution: kmadel commented@tahiticlic: Do you mean like this http://jquery.malsup.com/cycle/pager-over.html
Comment #10
tahiticlic CreditAttribution: tahiticlic commentedWithout the squares around numbers, but yes this is the idea.
I've managed to do it with advanced options (allowPagerClickBubble and pager), but the pager is displayed even if there's only 1 slide.
On the other hand, when using pager just checking the appropriate checkbox (using a Global counter field), there's a pager displayed when it must be displayed, but it is not clickable...
What would be great is a mix of this two.
Comment #11
seeker09 CreditAttribution: seeker09 commentedFound a solution at https://www.youtube.com/watch?v=H23E-Z4zL-o
were it uses slideshow with views and in views, this way:
- add the field "Global: View result counter"
- uncheck - create label
- check create label
- in format slideshow settings, in the pager:
- check - the "Global: View result counter" field
And if you want to mouse over as a link in the numbers displayed, you can:
in the field "Global: View result counter":
- rewrite results
- output this field as a link
- linkpath: #pager (or #something_you_want)