Thanks for the great module guys :-)

I need to stop the slideshow after 1 loop - I've figured out that to do this I need to place some custom code in the "Custom jQuery Cycle Plugin Settings" textarea. I put the following code in (taken from http://malsup.com/jquery/cycle/options.html):

{"autostop":1,
"autostopCount":6}

After I saved the configuration settings, the dd block disappeared. When I removed the custom code, the block still did not appear and I had to restore the database from a backup I took before the change, and the block came back.

Any ideas as to what went wrong?

Charles.

Comments

ppblaauw’s picture

This would be the way I would implement your requirement.
Will test this later and let you know what my findings are.

foxtrotcharlie’s picture

As a workaround, it possible to access the slideshow cycle properties using jquery? For example, to put this in a separate javascript file:

$('#artistCycleParent').cycle({
fx: 'fade',
speed: 3000,
timeout: 5000,
pause: 1,
next: '#artworkNext',
prev: '#artworkPrev'
});

Would something like this work? How would I know which #id to target?

ppblaauw’s picture

Forgot to follow up on this issue. I tested it on my server and the code works perfect when I put this in the custom jQuery Cycle Plugin Settings.

{"autostop":1,
"autostopCount":6}

The slideshow stops after the 6th slide.
I don't know what went wrong on your server.

----

You can override all the Cycle plugin settings in the custom jQuery Cycle Plugin Setting.

But the code needs to be JSON syntax:

So it would become:

{"fx": "fade",
"speed": 3000,
"timeout": 5000,
"pause": 1}
foxtrotcharlie’s picture

Thanks for your feedback - will investigate a bit further :-)

ppblaauw’s picture

Status: Active » Closed (fixed)

Closed issue. Assume poster solved the issue. 5 weeks without activity.