Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Add fields to admin content page

Started by Muut Archive 10 years ago · 3 replies · 711 views
10 years ago

In this example, this blueprint will append a new field to the section 'override', which is on the advanced tabs. However, the field 'override' is not present on the 'content' tab.
Here is an example that should append to the content section:

YAML
title: Gallery
'@extends':
    type: default
    context: blueprints://pages

form:
  fields:
    tabs:
      type: tabs
      active: 1

      fields:
        content:
          fields:
              header.an_example_text_field:
                  type: text
                  label: Add a number 
                  default: 5
                  validate:
                    required: true
                    type: int
10 years ago

Thanks! This works perfectly. Thought override is an defined string for expanding a form with additional fields :|

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago