Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Hide taxonomy field from admin panel

Started by Mohamed 7 years ago · 0 replies · 662 views
7 years ago

Hello every one.

Is there a way to hide or remove the taxonomy field from the admin panel? I want to hide it so that the cliënt can't change it.
Capture|690x92

What I want is the next thing. When the cliënt is making a new page and name it i.e. "case". All the information he is putting I want to play with it in another twig. And with taxonomy I can achieve al the information. But for some reason I can't hide it.

What I already tried is "disabled: true" or "unset@: true" both won't work. Am I doing it wrong?

YAML
title: Content

form:
  fields:
    tabs:
      type: tabs
       active: 1

  fields:
    content:
      type: tab
      title: Content

      fields:
        header.fieldset:
          type: fieldset
          title: Titel van het blok
          collapsed: false
          collapsible: true
          fields:
            header.fieldset.title:
              type: text
              validate:
                required: true
              label: Titel

            header.taxonomy:
              type: taxonomy
              label: PLUGIN_ADMIN.TAXONOMY
              classes: taxonomies
              multiple: true
              disabled: true
              default:
                tag: ['case']
              validate:
                type: array

    nothing:
      type: tab
      title: nothing

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 4 days ago
2 86 15 hours ago
General · by Old Man Umby, 2 days ago
1 60 2 days ago
General · by Sebastian, 4 days ago
1 81 4 days ago
General · by Andy Miller, 2 weeks ago
0 215 2 weeks ago
General · by ready-4-IT, 6 months ago
1 716 3 weeks ago