Bug Report: Video Carousel
under review
J
Jaime Briquelet
In the new Video Carousel widget, the "Wide (reversed)" style is not rendering properly. It's showing all of the larger sized videos all at once instead of just the one selected.
Examples:
- Video Carousel on Folwell webpage: https://folwell.umn.edu/video-carousel
- Video Carousel on a CSE test page: https://cse.umn.edu/regressiontesting/folwell-video-carousels
Photo Viewer
View photos in a modal
Dimitri Tadege
marked this post as
under review
Mark Byart
I think this is down to multiple carousels one page both getting the same random ID prefix. It's set in the template to be one a-z character as a prefix. See line 8 of the template: https://github.umn.edu/drupalmodules/folwell_components/blob/10.x-release/modules/folwell_video_carousel/templates/paragraph--video-carousel.html.twig
Setting two random letters instead of one for the prefix would massively reduce the chances of this happening. Either of these replacement lines would work:
{% set rnd = random('abcdefghijklmnopqrstuvwxyz') ~ random('abcdefghijklmnopqrstuvwxyz') %}
{% set rnd = 'abcdefghijklmnopqrstuvwxyz'|shuffle|slice(0, 2) %}