static-cms icon indicating copy to clipboard operation
static-cms copied to clipboard

date fields won't display in summaries (or as sortable fields)

Open mimecine opened this issue 2 years ago • 2 comments

Title says it all.

    summary: "{{title}} - {{venue | upper | truncate(10,'...')}} - {{start}} to {{end | date('yyyy')}}"
    summary_fields: ["title","venue","start","end"]
    sortable_fields: 
      fields: ["title","venue","start","end"]
      default:
        field: "end"
        direction: Descending

The above exposes another problem: format filters do nothing. I did try to prefix the fields like {{fields.start}} but there was no difference in behavior.

mimecine avatar Feb 24 '24 00:02 mimecine

What version are you using?

KaneFreeman avatar Apr 26 '24 13:04 KaneFreeman

I just tried with 4.3.0 from cdn and it has the same problems. I would love to dive into it and provide a PR (if I manage to fix anything), but I have a hard time finding where the code is.

mimecine avatar Apr 30 '24 20:04 mimecine