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

[Kirby 3] Default value #4

Closed
medienbaecker opened this issue Nov 16, 2018 · 3 comments
Closed

[Kirby 3] Default value #4

medienbaecker opened this issue Nov 16, 2018 · 3 comments

Comments

@medienbaecker
Copy link

I think a default value is missing from the Kirby 3 version. Or am I doing something wrong?

beverage:
  label: Beverage
  type: imageradio
  default: wine
  options: 
    beer:
      text: Beer
      image: beer.jpg
    wine:
      text: Wine
      image: wine.jpg
@sylvainjule
Copy link
Owner

sylvainjule commented Nov 17, 2018

The default value works for me. Try and compare with the core radio field, it should behave the same way? I'm extending it and didn't touch anything default-related.

Default in K3 works by pre-filling the .txt file on page creation. So, if you've already created a page and add the default option in the blueprint afterwards, it will not fill the field. There's no backward default-filling.

@sylvainjule
Copy link
Owner

Searching for an error allowed me to spot one for the default checkboxes / imageboxes field though. 🙉

@sylvainjule
Copy link
Owner

sylvainjule commented Nov 21, 2018

Both Imageradio + Imageboxes defaults should now work as their core-fields'. Don't hesitate to reopen if still experiencing an issue ☝️

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

No branches or pull requests

2 participants