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

Support random default values for list child fields #2255

Merged
merged 2 commits into from
Mar 18, 2022
Merged

Conversation

xf-
Copy link
Contributor

@xf- xf- commented Mar 17, 2022

At the moment, only fields key/value are supported and not a randomly named set of properties.

The trim function is needed, because the field name starts with a dot vs val is without a dot.
The value is assigned in line 3 in list.twig.html
(Line 3 is shouldn't be needed because fields.twig.html does the same thing. Check for null and assign default)

@w00fz w00fz merged commit 4c0cb4d into getgrav:develop Mar 18, 2022
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

Successfully merging this pull request may close these issues.

2 participants