Timeline

Timeline is a feature by Contentful that allows you to create, schedule and preview multiple upcoming versions of the same digital experience.

Note: The Timeline feature is available on specific plans. For more information, reach out to your Sales representative.

To enable Timeline Preview, you need to use the @timeline directive and pass the Timeline preview tokens as arguments. For example:

1query @timeline(where: { release_lte: "<releaseId>", timestamp_lte: "<date>" }) {
2 blogCollection(preview: true) {
3 items {
4 sys {
5 id
6 }
7 title
8 }
9 }
10}

Notes:

  • The @timeline directive is a query-level directive.
  • You need to ensure that the directive is present in all preview queries made by your website.
  • The preview argument must be set to true, just like regular preview. If the preview argument is set to false, the directive has no effect.
  • The @timeline directive should work with all of your existing GraphQL queries. If something doesn’t work, please report a bug.