Slideshow doesn't work correctly on AJAX load

Created on 21 October 2015, about 10 years ago
Updated 21 July 2025, 4 months ago

Hello there!

When using this module with Views Load More (for example) slideshow doesn't work since behavior is not properly attached.
To reproduce the issue:
1. Install Views Load More
2. Make output of field. I use colorbox.
3. On newly loaded items try to change pic with next/prev buttons.
4. Nothing happens.

The problem is that newly added items has the same id as the first ones, i. e. "field-slideshow-1", settings are merged and newly added items considered processed.

Static variable cannon be used to provide unique id between different HTTP requests.
drupal_html_id in drupal 8 is also deprecated.
Simplified D8 solution can be used here - provide random number.

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇷🇺Russia lexbritvin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024