Image Choice
yaml
handle: destination
field:
type: image_choice
display: 'Pick a destination'
multiple: false
columns: 3
aspect_ratio: 4/3
options:
-
key: sea
label: 'By the sea'
image: sea.jpg
-
key: mountain
label: 'In the mountains'
image: mountain.jpgmultiple: Allow more than one choice.columns: The number of columns on larger screens, from 1 to 4. Cards stack on phones.aspect_ratio: The shape of the images.
The images come from the asset container set in statamic.assets.image_choice_images.