Imageradio - Add images to radio buttons

The brother of Imageboxes.

A simple tweak of the radio field, allowing to add images / colors to radio buttons.

Basic usage :

  fieldname:
    label: Field label
    type: imageradio
    columns: 3
    options: 
      light:
        label: Light theme
        image: light.jpg
      dark:
        label: Dark theme
        image: dark.jpg
      blue:
        label: Blue theme
        image: blue.jpg

More informations on GitHub :

9 Likes

Awesome! I needed exactly the same thing a few days ago and made a barebones version of this—but with hardcoded images according to the value. And without the options, of course.

This is super handy, thanks a lot!

Nice, could use the same think but with Checkboxes to make choosing Images for a Gallery easier.

Thanks ! I’ve refined it a bit (shorter name, separate display options, compatible with image queries) and published its checkbox sibling.

2 Likes