In some cases, it is useful to trigger a page refresh when the rotator image is changed (for example, in order to reload other page elements and/or trigger analytics routines).

It would be helpful if this module added a "one image per page" option, where only one image from the slideshow is rendered to the page, and previous/next links and pager links cause a page refresh.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arithmetric’s picture

Status: Active » Needs review
FileSize
7.06 KB

Attached is a patch that adds an option for this mode to the field widget.

arithmetric’s picture

Attached is an updated version of the patch to change the method for specifying a slideshow image from a query parameter (/path?slideshow_page=3) to the last path parameter (/path/3).

kiova’s picture

That was the solution i was looking for for a while :) Great work! Thank you.

I am a designer and i do not know coding :( I ll be happy if you can help me for two more feature requests with your patch;

1) path parameter can be better if it can able to work with pathouto... so path will can be something like /node-title/2 rather that /node/nodeid/2

2) When trying to use pager it only shows slide numbers as pager even i selected image (thumbnails) for pager. It will be perfect if we are able to use image thumbnails for pager.

arithmetric’s picture

Hi kiova,

Thanks for the feedback.

I should have mentioned this before, but to be able to use the image number with a URL alias (like /node-title/2 instead of /node/123/2), you just need to install and enable the subpathauto module: http://drupal.org/project/subpathauto

Regarding the request to support pager links with thumbnails: This is not a use case that I considered when making the patch, but I think the patch could be modified to accomplish this. Unfortunately at the moment, I don't have time to test this change.

kiova’s picture

Thank for our code bro. i will use subpathauto for paths.

Hope you ll have time for images :) i ll be following.

lamp5’s picture

Issue summary: View changes
Status: Needs review » Closed (works as designed)