Search code examples
pluginssanity

Scheduled posts not showing in Sanity calendar


I installed Sanity Content Calendar using sanity install content-calendar. Under Desk tab, scheduling works as the Publish button becomes a Schedule button but once I schedule a post, nothing seems to show up under Calendar tab and the calendar is still empty as if I didn't schedule anything.

I followed recommendations however as I had to specify type fields in ./config/content-calendar.json:

{
  "types": [
    {
        "type": "post",
        "field": "publishedAt"
    },
    {
        "type": "analysis",
        "field": "publishedAt"
    }
  ],
  "filterWarnings": [{}]
}

So why is that ?


Solution

  • After I went on the repository issue, I found a solution in the comments.

    Indeed I just had to specify a title for each type but it was not told in this post.

    This should look like this in ./config/content-calendar.json:

    {
      "types": [
        {
            "type": "post",
            "field": "publishedAt",
            "titleField": "title"
        },
        {
            "type": "analysis",
            "field": "publishedAt",
            "titleField": "title"
        }
      ],
      "filterWarnings": [{}]
    }