After fiddling with the link you’ve sent. I understood why you asked about the code… the select (when reading the value from de structure field) already returns the item position in the array/structure. I’m dumb.
Anyway… couldn’t figure how to make the custom field work. i keep getting errors like:
Warning: Illegal offset type in isset or empty in /Users/rhawbert/Sites/centopeia/kirby/toolkit/lib/silo.php on line 30
I’m out of options… and have no idea how to solve this.
[edit] I believe there’s something wrong with the blueprint that’s using the custom select field… I’m using like:
event_type:
label: Event type
type: category
options: query
page: events #this is the parent page