li-invalid

Added in: release-2024-03

Supported Features

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

Description

A simple Boolean value store, represented in the UI with a checkbox which you can toggle on/off.

When the value is true an overlay will be displayed on the image or video to indicate the state. This plugin can be used to indicate that the media library entry is no longer valid due to licensing reasons. The li-invalid plugin state has priority over li-datetime-validity.

When toggling the value a webhooks event for mediaLibraryEntry.active or mediaLibraryEntry.invalid will be emitted. Please see the Webhooks documentation for further details on how to configure them.

Default UI

Checkbox

Storage Format

<Boolean>

Content Type Config

{
  handle: 'myContentType',
  // ...
  metadata: [
    {
      handle: 'myHandle'
      type: 'li-boolean',
      ui: {
        label: 'foo', // optional, default: start case of handle
      }
    }
    // ...
  ]
}