0.1.0 • Published 2 years ago

directus-extension-dictionary-test v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Directus Dictionary

An extension providing dictionary interface for Directus that returns a standartd object of key/value pairs.

Example setup

Extend the Directus built in repeater interface, to add, rearange, and delete keys.

Field options

Add values to the predifined list of keys:

Editing field values

The end value of this field will be:

{ 
  "logIn": "Log In",
  "logOut": "Log Out"
}

Keys with empty are omitted from the response object.

Feature List

  • Directus interface extension
    • Adding/removing/rearranging keys
    • Adding/removing values
    • Filters out empty values
    • Shows warning in empty fields
    • Shows completion progress in editor
  • Directus display extension
    • Displays completion progress in collection view
    • Sorts items by completion

Usage

  1. Build it via npm run build
  2. Copy dist/interfaces/dictionary to /directus/extensions/interfaces (or whereever your extension folder is)
  3. Add a new json field to your collection and select the Dictionary interface
  4. Define keys and add optional descriptions