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

Suddenly weird error on page save?

Started by Muut Archive 10 years ago · 1 replies · 463 views
10 years ago

So I was working on a custom page blueprint and all of a sudden I got this error.

Error

I thaught that I made a mistake so I checked it by using a example blueprint from the documentation.

YAML
title: Gallery

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

      fields:
        referentie:
          type: tab
          title: Referenties

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

            header.an_example_select_box:
              type: select
              label: Select one of the following
              default: one
              options:
                one: One
                two: Two
                three: Three

            route:
              type: select
              label: PLUGIN_ADMIN.PARENT
              classes: fancy
              '@data-options': '\Grav\Common\Page\Pages::parents'
              '@data-default': '\Grav\Plugin\admin::route'
              options:
                '/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT

I saved it and everything was fine. But when I removed the 'route' part

YAML
title: Gallery

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

      fields:
        referentie:
          type: tab
          title: Referenties

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

            header.an_example_select_box:
              type: select
              label: Select one of the following
              default: one
              options:
                one: One
                two: Two
                three: Three

The error came back?

This was my original blueprint file that I've writen by myself.

YAML
title: Referenties

form:
    fields:
        tabs:
            type: tabs
            active: 1
            fields:
                referenties:
                    type: tab
                    title: Referenties
                    fields:
                        header.referenties:
                            type: list
                            name: Referenties
                            style: horizontal
                            fields:
                                .images:
                                    type: file
                                    label: Plaats hier je fotos
                                    destination: 'self@'
                                    multiple: true

Whats wrong?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1350 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4061 9 years ago
Archive · by Muut Archive, 9 years ago
1 2948 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago