Structured Content 2022: Join our conference to explore fresh perspectives on content and digital experiences →

sanity-plugin-timelinejs

By Knut Melvær

This plugin install schemas for hosting content for Timeline.js.

Sanity Timeline.js schemas

sanity install timelinejs

This plugin install schemas for hosting content for Timeline.js. A simple example frontend can be found at codesandbox.io.

Simple GROQ formatting in order to get the correct content structure:

*[_type == "timeline"][0]{
  "title": title{
    "media": media{
      "url": asset->url,
        caption,
        credit
    },
    "text": title{
      headline,
      "text": text[][0].children[][0].text
    }
  },
  events[]->{
    "media": media{
      caption,
      credit,
      "url": image.asset->url
    },
    start_date,
    "text": text{
      headline,
      "text": text[][0].children[][0].text
    }
  }
}

Install command

sanity install timelinejs

Contributor

Categorized in

Other plugins by author

Mux input

Upload videos to Mux directly from the studio.

Go to Mux input

Webamp

Run a Winamp port in your studio!

Knut Melvær
Go to Webamp

Podcast content schema

Podcast plugin for ,Sanity, that creates schemas for podcasts and episodes with necessary iTunes data. Make as many podcasts with as many episodes as you want.

Knut Melvær
Go to Podcast content schema