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.

Support

Hide main page editor?

Started by S Larcher 8 years ago · 1 replies · 574 views
8 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

8 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 Thomas, 1 week ago
2 64 18 hours ago
Support · by Anna, 3 days ago
2 68 20 hours ago
Support · by Justin Young, 21 hours ago
1 35 21 hours ago
Support · by Duc , 1 week ago
2 71 6 days ago
Support · by Colin Hume, 1 week ago
2 63 6 days ago