Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Hide taxonomy field from admin panel

Started by Mohamed 7 years ago · 0 replies · 490 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 Jerry Hunt, 4 days ago
2 91 14 hours ago
General · by pamtbaau, 19 hours ago
1 61 18 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 354 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago