You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Do you want to request a feature or report a bug?
Bug - What is the current behavior?
List widget with a single object as its array element outputs "List[map]........" string in the ui like shown here https://nupic.co/image/6T638 - If the current behavior is a bug, please provide the steps to reproduce.
Please use this configuration to reproduce the bug
The core issue here is that we need a smarter approach to providing display titles for list widget items. We currently look for fields with a handful names, or else fallback to stringifying the first field, which results in the above. At a minimum, we should provide a generic fallback, perhaps based on the list widget label itself, if none of the list widget fields are strings.
The value of that field appears in the backed as per the enclosed screenshot.
That being said it would be cool to have something like this (this is just an idea; don't try it, it does not work!):
# This does not work, it's just an idea
widget_item_title: "{{ lang }} blog post {{ title }} ({{ date}})"
fields:
- label: "Title"
name: "title"
widget: "string"
....
So we could have, for example: "English blog post How to use Nelify (2021-04-28)" as a title.
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
List widget with a single object as its array element outputs "List[map]........" string in the ui like shown here https://nupic.co/image/6T638
- If the current behavior is a bug, please provide the steps to reproduce.
Please use this configuration to reproduce the bug
Here is the data structure that gets created from the above code
{ "footer": [ { "links-col-1": [ { "href": "/activeico.html", "name": "Active ICO" }, { "href": "/upcomingico.html", "name": "Upcoming ICO" }, { "href": "/endedico.html", "name": "Ended ICO" } ], "links-col-2": [ { "href": "/whitelist.html", "name": "Whitelist" }, { "href": "/preico.html", "name": "Pre ICO" }, { "href": "Advertising", "name": "/publishico.html" } ] } ] }
- What is the expected behavior?
- Please mention your versions where applicable.
Netlify CMS version: 1.5
Browser version:
Node.JS version:
Operating System:
- Please link or paste your
config.yml
below if applicable.The text was updated successfully, but these errors were encountered: