StaticJsCMS / static-cms

A Git-based CMS for Static Site Generators

Home Page:https://staticcms.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mimecine opened this issue · 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.

What version are you using?

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.