Slideshow - Remember last image on reload

Permalink
Hi all,

I apologise if this has been covered already however I was unable to find a post on the issue.

I am needing to have the slideshow module remember the last image displayed on page reload.

Basically when a user clicks to a new page, the new page needs to load displaying the last image shown before the user clicked from the last page.

If anyone can assist with this, it would be greatly appreciated.

 
jordanlev replied on at Permalink Reply
jordanlev
This is very tricky -- because the slideshow uses javascript to rotate the images, the server (and hence concrete5) never knows which one was displayed at the time the user left the page.

Getting this to work would require a decent amount of coding. You would create a custom template for the slideshow block, add an ajax call in the custom template that is triggered when any link on the page is clicked, which would send the currently-viewed image to a method in a tools file, which would write the last-viewed image to the user's session data. Then you could add another ajax call to the custom template that is triggered when the page first loads that calls another "tools" method on the server that reads the last-viewed image from the session and passes it back.

Might not be worth the trouble!

-Jordan
Kiesel replied on at Permalink Reply
Not soooooo tricky actually. Do you still need that?