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…
In the portfolio.yml blueprint :