Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | field_slideshow-1999162-2-add_one_image_per_page_option.patch | 7.86 KB | arithmetric |
#1 | field_slideshow-1999162-1-add_one_image_per_page_option.patch | 7.06 KB | arithmetric |
Comments
Comment #1
arithmetric CreditAttribution: arithmetric commentedAttached is a patch that adds an option for this mode to the field widget.
Comment #2
arithmetric CreditAttribution: arithmetric commentedAttached 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).
Comment #3
kiova CreditAttribution: kiova commentedThat 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.
Comment #4
arithmetric CreditAttribution: arithmetric commentedHi 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.
Comment #5
kiova CreditAttribution: kiova commentedThank for our code bro. i will use subpathauto for paths.
Hope you ll have time for images :) i ll be following.
Comment #6
lamp5