Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I have put a slideshow on my website. Looks nice and works fine, however, I would prefer if it played the images in random order. Since there is no such option in the slideshow's properties, can I somehow (and how?) tweak the wsp_slideshow script to force the slideshow into random mode? |
||||
|
That should be easy, open the wsp_slideshow script and find the function wsp_slideshow.prototype.gotoNextFrame There is a line looking like this: ++this.currentFrame; replace it with this: var oldframe = this.currentFrame; |
||||
|
Thanks a lot, niko!! That works ![]() |
||||
|
While I don't mind doing this, do you think it might be a nice option to have right within RocketCake? Surely there's enough people who would want a random slideshow order? |
||||
|
Sure, why not! |
||||
|
Tagging onto this - although it sounds like you might already implement it, but if we were to manually edit the javascript files, when we go to publish the site again, wouldn't that overwrite our custom versions? I haven't tried it yet, I figure asking the question is easier than experimenting - sorry! |
||||
|
when we go to publish the site again, wouldn't that overwrite our custom versions? Yes, re-publishing will overwrite your custom version. However, if your changes do not involve changes to the image gallery you can save your custom version by just re-naming it. Then, after the re-publish is done, just delete the newly generated gallery script, and re-name your custom version back to its default file name. |
|