We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
When a field using the list widget has a label_singular defined, the regular label is not displayed when the list has 0 or 2+ items.
list
label_singular
label
- If the current behavior is a bug, please provide the steps to reproduce.
Add foobar +
- What is the expected behavior?
That the label_singular is used only when there is exactly one item, so that it would say "0 foobars" and "2 foobars".
- Please mention your versions where applicable.
Netlify CMS version: 1.8.4 Browser version: Chrome 66.0.3359.181/OSX
- Please link or paste your config.yml below if applicable.
config.yml
collections: - name: mycollection label: My collection folder: thefolder slug: "{{id}}" create: true fields: - name: 'foobars' label: 'Foobars' label_singular: 'Foobar' widget: 'list' fields: - name: 'foobar' label: 'Foobar' widget: 'string'
The text was updated successfully, but these errors were encountered:
Only use label_singular when one item is rendered in the listControl
aea97b2
Fixes decaporg#1397. Check the size of the item list and set the listlabel based on that. If no label_singular is set, fall back to the normal label
No branches or pull requests
- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
When a field using the
list
widget has alabel_singular
defined, the regularlabel
is not displayed when the list has 0 or 2+ items.- If the current behavior is a bug, please provide the steps to reproduce.
Add foobar +
button- What is the expected behavior?
That the
label_singular
is used only when there is exactly one item, so that it would say "0 foobars" and "2 foobars".- Please mention your versions where applicable.
Netlify CMS version: 1.8.4
Browser version: Chrome 66.0.3359.181/OSX
- Please link or paste your
config.yml
below if applicable.The text was updated successfully, but these errors were encountered: