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 →

Hide main page editor?

Started by S Larcher 9 years ago · 1 replies · 875 views
9 years ago

Hi,

what's the best way to hide the main page editor?
As I am using custom fields this one is obsolete...

Thx!!

15%20PM|690x217

9 years ago

Hi @slarcher, you could use the unset feature for blueprints to hide a field, more info here:
https://learn.getgrav.org/forms/blueprints/advanced-features#removing-fields-properties-unset

To hide the content area on a page you would create a custom blueprint for that page type, and then have something like this:

YAML
title: Custom Page
'@extends':
type: blog
context: blueprints://pages

form:
  fields:
    tabs:
      type: tabs

  fields:
    content:
      fields:
        content:
          unset@: true

Let me know how things go.

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago