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.
It would be really cool if there was the option to display a random image from the list of provided images.
Thanks for the great module, BTW!
Comment | File | Size | Author |
---|---|---|---|
#3 | backstretch_context_reaction_backstretch.inc_.zip | 3.74 KB | pauligree |
Comments
Comment #1
mgladding CreditAttribution: mgladding commentedOkay - I figured this out on my own using this: http://ma.tt/scripts/randomimage/
Works great!
Comment #2
zincdesign CreditAttribution: zincdesign commentedCould you possibly explain how you did it? I looked at your link and I am still in the dark. I am not a coder unfortunately.
Comment #3
pauligree CreditAttribution: pauligree commentedI solved adding some code in the file backstretch_context_reaction_backstretch.inc.
In the context now you have a new checkbox "random images" [default : off]
Sorry: I can't provide a patch a the moment but I attach the file already patched.
Enjoy
Comment #4
maxplus CreditAttribution: maxplus commentedHi,
thanks for the effort, I was also looking for this feature.
When I use your backstretch_context_reaction_backstretch.inc I cannot see the new checkbox, strange.
Even after clearing caches multiple times.
I also disabled the module and enabled it again.
Maybe I'm looking at the wrong location, now I'm looking at the display settings of my image field of my content type.
Comment #6
yannickooI have added a checkbox to the field formatter and context reaction as well which allows you to display a random image instead of a slideshow. I hope that this solution works for you :)