Closed pleasantone closed 10 months ago
Hmm, I didn't see any problem, do you test summary = "{{fields.author}}"
?
I tried both fields.author and fields.authors, neither affects the summary, so my apologies.
All I get is the following when collapsed...
and the following when expanded:
I was hoping to get a clean text summary when collapsed, but I'm missing something. Something that looked like:
Authors:
> 2 authors: ich, paul
I see, it would be much more intuitive without needing to expand field, but I didn't find a solution before, may need dive into their docs and source code.
Let's keep it open.
I believe we can't configure it by far, and the list
field is complex (not just string
), I don't think it's easy to make changes on Decap CMS:
But we can replace it with a new custom widget.
Done, replace list
widget with strings
for those fields.
I haven’t looked carefully at your new code yet, but are you aware of how the list widget works? If there are no fields defined? You might have just duplicated that.
Now it looks like as follows, those field's values are comma-space-separated (,
) text by default. It's much more intuitive and easy to modify than list
widget.
but are you aware of how the list widget works
Accoding to the code link above, the list
widget only shows the number of children and the label on the header, the children's values won't be shown unless expanding.
heading={`${items.size} ${listLabel}`}
https://github.com/hugomods/decap-cms/blob/0525a84495e71b6303be8b4d73257d783d51d718/hugo.toml#L43