Supported Features

Document Creation Flow
Push Message
Table Dashboard
Display Filter
Search Indexing
System Metadata
Webhook Conditions


This plugin allows ‘from’ and ’to’ dates to be defined for a media library entry’s validity. An image may have 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.

Behind the scenes, since release-2024-03, a job scheduler runs. If a state change is detected then a webhooks event for or mediaLibraryEntry.invalid will be emitted. Please see the Webhooks documentation for further details on how to configure them.

If a manual process is used to manage validity, or if you need a way to override the schedule, then li-invalid can be used.

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
    // ...