Directus Dictionary screenshot

Directus Dictionary

Author Avatar Theme by Gxvxc
Updated: 27 Mar 2021
41 Stars

Dictionary interface adding key/value pairs field support.

Categories

Overview:

The Directus Dictionary is an extension for the Directus CMS platform. It provides a dictionary interface that returns a standard object of key/value pairs. This extension allows users to create, edit, and delete keys, as well as add and remove values. It also filters out empty values and shows warnings in empty fields. Additionally, it offers completion progress indicators in the editor.

Features:

  • Directus interface extension: Extends the Directus CMS interface to provide a dictionary interface.
  • Adding/removing/rearranging keys: Users can easily add, remove, and rearrange keys in the dictionary.
  • Adding/removing values: Users have the ability to add and remove values for each key.
  • Filters out empty values: Empty values are filtered out from the response object.
  • Shows warning in empty fields: Users are warned when they leave fields empty.
  • Shows completion progress in editor: Completion progress indicators are displayed in the editor.
  • Directus display extension (not yet implemented): Planned feature to display completion progress in the collection view.
  • Sorts items by completion (not yet implemented): Planned feature to sort items based on completion progress.

Installation:

To install the Directus Dictionary extension, follow these steps:

  1. Build the extension using npm run build.
  2. Copy the dist/interfaces/dictionary folder.
  3. Paste the copied folder into the /directus/extensions/interfaces directory (or the appropriate directory for your extension folder).
  4. Add a new JSON field to your Directus collection.
  5. Select the Dictionary interface for the newly added JSON field.
  6. Define the keys for the dictionary and add optional descriptions for each key.

Summary:

The Directus Dictionary extension enhances the Directus CMS platform by providing a user-friendly dictionary interface. It allows users to manage key/value pairs easily and efficiently. With features such as adding/removing keys, adding/removing values, and filtering out empty values, it simplifies the process of working with dictionaries in Directus. The planned addition of completion progress indicators and sorting capabilities further improve the user experience. Overall, this extension is a valuable tool for optimizing dictionary management in Directus.