I try to have on the home page of the site, a random image among a selection of images coming from different portfolio pages of the site (www.oliviergassies.fr, for the moment the site shows random images of the homepage).
For that I thought to create via blueprint for the portfolio template a toogle field for images. I toggle images I want for homepage. And then one toggled image is selected randomly and showed on hompage. But…
Here details
In the portfolio.yml blueprint :
files:
sortable: true
fields:
featured:
label: Featured
type: toggle
But first() returns only a single image, so it can’t really show all images. Or do you mean, a random single image out of all images, not only the featured ones.