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.
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.
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