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

Panel: users field doesn't fill current user as default #6381

Closed
possible-is opened this issue Apr 5, 2024 · 3 comments
Closed

Panel: users field doesn't fill current user as default #6381

possible-is opened this issue Apr 5, 2024 · 3 comments

Comments

@possible-is
Copy link

I have experienced a change from V3 to V4: The users field in the panel, for example:

author:
  type: users

is not filling in the current user as a default. This is happening in all V4 version.
I checked it against V3.9.1 and there it works.

@afbora
Copy link
Member

afbora commented Apr 5, 2024

Use like following:

author:
  type: users
  default: true

https://getkirby.com/releases/4.0

Users field: set default: true to always use the currently logged in user as default

@afbora afbora closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
@possible-is
Copy link
Author

Thanks for clearing that up!

@twiro
Copy link

twiro commented Apr 25, 2024

Just stumbled upon this change in behaviour myself and was glad I found the solution in this issue here, as the official documentation completely lacks this information:

https://getkirby.com/docs/reference/panel/fields/users#default-values

Would be great, if it could be included there too!

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

3 participants