Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Blueprints: how to disable the security tab?

Started by ontime 5 years ago · 1 replies · 1191 views
5 years ago

To make my content easy to manage I disable tabs that are not useful depending on the page.

In Grav 1.7 I cannot find a way to disable the Security tab.

The following blueprint still displays the Security tab although it is not defined and there is no inheritance:

YAML
form:
  fields:
    tabs:
      type: tabs
      active: 1
      fields:
        content:
          type: tab
          title: PLUGIN_ADMIN.CONTENT
          fields:
            xss_check:
              type: xss
            settings:
              type: section
              title: Not editable
            folder:
              type: hidden
              label: PLUGIN_ADMIN.FOLDER_NAME

How can we hide this tab?

Bonus question:
Sometimes a page should not be editable, is there any better way to achieve this that the one from my example where I actually hide all fields and hope that the user will not find its way to the expert mode?

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Japhy, 12 hours ago
0 29 12 hours ago
Forms & Blueprints · by FrViPofm, 3 weeks ago
5 276 3 weeks ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2267 8 months ago
Forms & Blueprints · by Hugo Oliveira, 9 months ago
0 733 9 months ago
Forms & Blueprints · by Flachy Joe, 10 months ago
9 812 10 months ago