This is a continuation of #515356: End of loop options
There is some code already posted there. Postponing this one for a future release.

* set a different wait time for the last slide (ie. longer).
* re-direct to a different link.

Comments

shane birley’s picture

Here is an updated list just because I feel so helpful today. :P

  • set a different wait time for the last slide (ie. longer).
  • re-direct to a different link.
  • ability to hide "previous" and "next" links on first and last slides when slide show set not to wrap (addition of views_slideshow_singleframe_previous_first and views_slideshow_singleframe_next_last class or something possible? not 100% sure how the controls are inserted)

Let me know if this is already possible and I just need some education. I can't see how at this point.

vinmassaro’s picture

Been looking for a way to hide controls on first/last slides here as well.

vinmassaro’s picture

Found this solution on the jcycle site: http://jquery.malsup.com/cycle/after.html

Any way possible to implement this (even just by adding some JS to the page?) I added the after: onAfter call in the advanced options, then added the JS to the page:

Drupal.behaviors.splash = function() {

function onAfter(curr, next, opts) {
    var index = opts.currSlide;
    $('#views_slideshow_singleframe_prev_nodequeue_4-block')[index == 0 ? 'hide' : 'show']();
    $('#views_slideshow_singleframe_next_nodequeue_4-block')[index == opts.slideCount - 1 ? 'hide' : 'show']();
}

};

No luck. I get "Error: opts.after[1].apply is not a function" when loading the page, and my views slideshow prev/next arrows don't work. Thanks in advance.

redndahead’s picture

Status: Postponed » Closed (won't fix)

I think I have decided to not add this. With version 3 you can easily set the onAfter setting.

jdln’s picture

Subscribing.