Hello,
I have a blueprint containing a structure field, which contains a multiselect input. Something like this:
fields:
items:
label: Gegenstände
type: structure
columns:
name:
location:
fields:
name:
label: Name
type: text
help: Eine generische Beschreibung des Gegenstands.
width: 1/3
location:
label: Lagerort
type: multiselect
width: 1/3
max: 1
options:
storage: Lager
office: Büro
basement: Keller
Now, within my template I can iterate over all the structure items and call toStructure()->location()
, which will give me the value of this field (so, it’s either storage
, office
or basement
). But how can I get the correct label (e.g. Lager
, Büro
or Keller
)?