There is an option in Cycle Options configuration in views format settings to "End slideshow after last slide" under "View Action Advanced Options". I am looking for enhancement to this feature.. Instead of Ending slideshow after last slide, there should be an option to "pause the slideshow and return to first slide".

If its easier to implement then do implement it or let me know which is the key file and function to play in views_slideshow module...??

Files: 
CommentFileSizeAuthor
#3 1831058_1.patch3.43 KBQandeel
#2 1831058.patch2.98 KBQandeel

Comments

Qandeel’s picture

Priority: Normal » Major
Qandeel’s picture

FileSize
2.98 KB

I was able to get this functionality out, it works only if the slideshow is continuous, please find the patch. this patch will create an option in Advance options "Pause the slideshow and return to first slide after running one slideshow"

Qandeel’s picture

Priority: Major » Critical
Status: Active » Patch (to be ported)
FileSize
3.43 KB

here is an updated patch

Qandeel’s picture

Any update on this issue.. Its a good feature to have, please let me know when is this going to be included in stable release

Qandeel’s picture

May I know if this is part of the stable release??

Qandeel’s picture

Issue summary: View changes
Status: Patch (to be ported) » Needs review
podarok’s picture

Version: 7.x-3.0 » 7.x-3.x-dev
Priority: Critical » Normal
Status: Needs review » Needs work
  1. +++ b/contrib/views_slideshow_cycle/js/views_slideshow_cycle.js
    @@ -24,14 +24,27 @@
    +	  pause_after_slideshow:settings.pause_after_slideshow,
    +	  counter:0,
    

    whitespaces instead of tabs needed here

  2. +++ b/contrib/views_slideshow_cycle/js/views_slideshow_cycle.js
    @@ -24,14 +24,27 @@
    -            var slideNum = opts.currSlide;
    +	    var slideNum = opts.currSlide;
    

    whitespaces instead of tabs needed here

  3. +++ b/contrib/views_slideshow_cycle/js/views_slideshow_cycle.js
    @@ -24,14 +24,27 @@
    +	    // Custom code to pause the slide show at first slide after running one complete slide show
    +	    // Only works with continuous option enabled in view, means nowrap option is disabled.
    +	    if(settings.pause_after_slideshow) {
    +	      opts.counter = opts.counter + 1;
    +	      // debug to see if counter is working fine
    +	      // alert(opts.counter);
    +	      if (opts.counter == settings.num_divs + 1) {
    +	        opts.counter = 1;
    +	        Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": settings.slideshowId, "force": true });
    +	      }
    +	    }
    

    whitespaces instead of tabs needed here