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 →

Remove Default Content Field From Module View

form

Started by Ross Campbell 5 years ago · 1 replies · 908 views
5 years ago

I am trying to remove the default content editor field that shows up on each module view in the admin panel; as I do not need it in every module and seems to cause confusion.

image|690x350

I'd love to remove it in my yaml blueprint somehow;

YAML
title: 'Text With Background'
'@extends':
    type: default

form:
  fields:
    tabs:
      type: tabs
      active: 1
      fields:
        content:
          fields:
            header.header_background_text:
              type: markdown
              label: 'Page Text'
              help: 'Optional, For if you want bold text at the top of the page'
            header.header_background_image:
              type: filepicker
              folder: '@self'
              preview_images: true
              label: 'Hero Background Image'
              help: 'This is the background image; its height is dynamic. But its width will always stretch across the entire page'
              accept:
                - .png
                - .jpg
                - .svg
            header.text_position:
              type: radio
              label: 'Text Position'
              help: 'Position The Text on the Page'
              default: center
              options:
                  left: Left
                  center: Center
                  right: Right

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Anna, 2 days ago
2 53 16 hours ago
Forms & Blueprints · by Anna, 3 days ago
7 82 16 hours ago
Forms & Blueprints · by Anna, 1 week ago
5 186 6 days ago
Forms & Blueprints · by TomW, 1 month ago
3 379 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 595 2 months ago