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 would like to start my slide show on the second to last slide of the sieres. I know how to set the startingSlide option with a number:
startingSlide 3
But is there a way to create that number with an expression and a variable:
startingSlide (Variable for the total number of slides - 2)
Comments
Comment #1
andyanderso CreditAttribution: andyanderso commentedI have figured out one way to do this by altering the jquery.cycle.all.js code by changing opts.startingSlide = 0; to this opts.startingSlide = els.length - 1; like this:
HOWEVER - when I do this the slideshow loads the first slide then jumps to the new starting slide instead of just starting on the specified starting slide. I know that this "fix" is not the best way to do this but have not found another way yet.
Anyone have any other ideas???
Comment #2
andyanderso CreditAttribution: andyanderso commentedchanging title to make issue easier to find
Comment #3
NickDickinsonWildeif you have json2.js you can set advanced options in the slideshow settings including starting slide # (it has a 0 based index).