Page Blueprints doesn't load (doesn't show up in Admin)

I created new page via admin panel - Projects.
It created:
user/pages/0.3.projects/projects.md

I created new template in THEME/templates/projects.html.twig - this works.

Then I created blueprint in THEME/blueprints/projects.yaml with this code:

title: Projects
@extends: 
  type: default
  context: blueprints://pages 

form:
  validation: loose

  fields:

    tabs:
      type: tabs
      active: 1

      fields:
        content:
          type: tab
          title: PLUGIN_ADMIN.CONTENT

          fields:
            header.heading:
              type: text
              limit: 1
              label: Heading

          fields:
            header.text:
              type: textarea
              limit: 1
              label: Text

(i just copied it from other Grav project, where it works)

And It’s just not showing up in admin. I tried it with several pages, tried cleaning Grav cache, and I just can’t make it show itself.

@Mantas, Run $ bin/grav yamllinter inside your site and your will see an error similar to the following:

/user/themes/quark/blueprints/project.yaml - The reserved indicator “@” cannot start a plain scalar; you need to quote the scalar at line 2 (near “@extends:”).

Btw. Grav 1.7+ is more strict on yaml syntax. It’s better to use extends@: instead. See the docs First Example

Then, after fixing that issue, run $ bin/grav yamllinter again and you will get something similar to:

/user/themes/quark/blueprints/project.yaml - Duplicate key “fields” detected at line 26 (near " label: Text").

1 Like

That helped. Thanks!