Extend default blueprint issues

The extend default blueprint does not seem to work anymore. Sometime after the update to 1.7 the additional fields i added do not show up anymore not sure if related though.

File is properly called project.yaml has no tabs, only spaces, the taxonomy category does work on the ‘Options’ Tab but ‘header.video’ is not showing at all. It did work before. Any ideas?

title: Project
  type: default
  context: blueprints://pages 

      type: tabs
      active: 1
          type: tab
              type: select
              ordering@: header.title
              label: Project Category
              highlight: 0
              data-options@: '\Grav\Theme\Zitron::categories'

              type: text
              style: horizontal
              label: Video URL

Since 1.7 I believe it should be either "@extends" (in quotes) or extends@ (@ at the end like you have ordering@). Otherwise it’s an invalid YAML

@grund, Always a good idea to read the upgrade documents. Grav 1.7 does have quite some changes of which some are breaking.

IMPORTANT: Grav 1.7 YAML parser is more strict and your site may break if you have syntax errors in your configuration files or page headers.

When you run $ bin/grav yamllinter -a you will get the following error thrown on your blueprint:

/user/xx.yaml - The reserved indicator "@" cannot start a plain scalar; 
      you need to quote the scalar at line 2 (near "@extends:").

NB. In your defence… Minor version changes should not introduce breaking changes. Grav 1.7 should therefor have been called 2.0 IMHO.

thanks! the linter is a nice tool to have. i’m in and out of development of a theme and not that experienced so i might sometimes skip things like “advanced” haha. the need to quote the scalar is not consistently changed in the docs too it seems.

@grund, There is nothing keeping you from fixing 1.6 leftover syntax in the docs by creating a pull request… Open Source is a two-way street…

1 Like