li-datetime-validity

Supported Features

Document
Media
Table Dashboard
Include
Display Filter
Search Indexing
System Metadata

Description

This plugin should be used only in the Media Library.

The intended use case is the following:
An image has a limited validity, for example due to copyright, so can be used only for a certain period of time. After that period, the copyright expires and the image should be removed from the website.

Default UI

Two datetime inputs

li-datetime-validity UI

Storage Format

{
  from: ISO8601 String,
  to: ISO8601 String
}

Content Type Config

{
  handle: 'myContentType',
  // ...
  metadata: [
    {
      handle: 'myHandle',
      type: 'li-datetime',
      config: {
        index: true                              // optional, default: false. Added in: release-2023-07
      }
    }
    // ...
  ]
}