Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with config-default@ and setting a value #1971

Closed
rhukster opened this issue Nov 16, 2020 · 3 comments
Closed

Problem with config-default@ and setting a value #1971

rhukster opened this issue Nov 16, 2020 · 3 comments
Assignees
Labels

Comments

@rhukster
Copy link
Member

rhukster commented Nov 16, 2020

This relates to blueprints and probably Grav 1.7/Admin 1.10.

I have a custom page blueprint definition with a field:

header.hero.height:
          toggleable: true
          type: text
          label: Height Classes
          config-default@: theme.hero.height

When there is no value it saves fine (i.e. not toggled on). As soon as I provide a value in the field and save it gives me an error:

Save Failed: Undefined index: type

Removing the config-default@ allows saving just fine, so it's definitely related to that. Also, make no difference if I change it to config-placeholder@, still gives error on save.

@mahagr
Copy link
Member

mahagr commented Nov 17, 2020

The field works perfectly for me. With and without having the variable in the theme.yaml. I used quark to test it out.

@w00fz
Copy link
Member

w00fz commented Nov 19, 2020

Believe you guys sorted this right? Can it be closed?

@rhukster
Copy link
Member Author

Yup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants