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!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mgladding’s picture

Okay - I figured this out on my own using this: http://ma.tt/scripts/randomimage/

Works great!

zincdesign’s picture

Could 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.

pauligree’s picture

I 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

maxplus’s picture

Hi,
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.

  • yannickoo committed 5ded7f1 on 7.x-2.x
    adds the option to display a random image instead of a slideshow if...
yannickoo’s picture

Status: Active » Fixed

I 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 :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.