Discussions
How to use select type for section settings
over 3 years ago by Grégoire Colson
It is written here that it is possible to set up a select type for a section setting. I'm trying to use it but it is not specified how to define the select options.
Given this code it seemed that I had to use an options
array attribute so i set it up like that :
- label: Afficher
id: display
type: select
options:
- value: 'tout le monde'
- value: 'en activité'
- value: 'plus en activité'
This is almost working : In the UI editor I see a 3 options select list, but the values i set up are not displayed.
Can you please telle me how to make it work ?
Thanks !