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.

Forms & Blueprints

Remove Default Content Field From Module View

form

Started by Ross Campbell 5 years ago · 1 replies · 598 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 Ton Haarmans, 5 years ago
13 1136 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 61 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 134 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 110 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 129 7 months ago