Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Published option appears twice when override Options in Admin

Started by Pedro M 4 years ago · 0 replies · 559 views
4 years ago

Hi there,

I have a custom default.yaml file in which I have overridden the Options tab to show only my choices. All options work fine except one, the Published option. This one shows two Yes and No toggle button.

publicado_grav|690x118

This is my yaml code:

YAML
options:
          type: tab
          title: PLUGIN_ADMIN.OPTIONS
          fields:
            publishing:
              type: section
              title: PLUGIN_ADMIN.PUBLISHING
              underline: true

              fields:
                header.published:
                  type: toggle
                  toggleable: true
                  label: PLUGIN_ADMIN.PUBLISHED
                  help: PLUGIN_ADMIN.PUBLISHED_HELP
                  highlight: 1
                  size: medium
                  options:
                    1: PLUGIN_ADMIN.YES
                    0: PLUGIN_ADMIN.NO
                  validate:
                    type: bool

Does anyone know what's going on?
Thanks.

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 24 hours ago
2 41 17 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago