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 Title & Content Form Fields In blueprint

Started by tradedemon 7 years ago · 3 replies · 1097 views
7 years ago

Hi guys

I have a blueprint that extends default. I can see it comes with the title and content/editor fields.

Is there anyway to hide, remove these ?

I tired this and it didn't work.

TXT
title:
  unset@: true
7 years ago

Hi @tradedemon , I have answered this question on Discord but am posting it here for others as well (please do not double post).

To hide the content area you could do this:

YAML
                content:
                  unset@: true
                header.media_order:
                  unset@: true

Here is an example blueprint for reference in it's entirety:
https://github.com/hibbitts-design/grav-theme-bootstrap4-open-matter/blob/master/blueprints/menubaritem.yaml

👍 1
7 years ago

Thanks that worked a treat, the example blueprint was helpful in applying it to my own blueprint.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 60 16 hours ago
Support · by Anna, 3 days ago
2 66 19 hours ago
Support · by Justin Young, 20 hours ago
1 34 20 hours ago
Support · by Duc , 1 week ago
2 70 6 days ago
Support · by Colin Hume, 1 week ago
2 61 6 days ago