Hi there,
I’m trying to add 2 fields to a (own) plugin setting page (SettingModel), both are ‘Switch’ fields, but I can’t set a default “on/checked/true” value. Is there something I’m missing?
showAuthor:
label: Show authors
type: switch
default: 1
tab: Design
showDates:
label: Show publication dates
type: switch
default: true
tab: Design
I have tried several default values, but nothing happens:
default: 1
default: true
default: ‘true’
default: on
etc.
Any idea how to fix this?
Thanks in advance!
-Kevin