Home

Awesome

šŸ° Directus extension: Text action display & interface

šŸ’” Add link & copy to clipboard functionalities to your directus fields. Supports interfaces as well as displays.

The actions can be performed by a button next to the items or by clicking on the value. The settings allow customisations for a bunch of different use-cases.

<br />

āœØ Supports

šŸ“‹ Copy action

Each value can be copied by a custom button. It's also possible to copy a value by just clickung on it (setting: click-action)

āž”ļø Links

When using the link-option it supports āž”ļø HTTP-, šŸ“§ mail-, and šŸ“ž phone- links. Each link can be opened by the custom button. If enabled it's also possible to open the link by just clicking on the value (setting: click-action).

šŸ–± Click-Action

The click action defines what should happen when you click on the value. This is supported for displays as well as readonly interfaces.Actions can be:

āš™ Settings

Icon position

Custom prefix

Link target

Warn before following external links

Hide field value (display only)

Button labels (display only)

<br />

āš™ļø Installation (marketplace)

The extension can easily be installed through the in-build directus marketplace. Just go to settings -> marketplace and search for field-actions.

āš™ļø Installation (npm)

npm i directus-extension-field-actions

or

pnpm i directus-extension-field-actions

āš™ļø Installation (manually)

  1. Download the app.js, api.js and package.json from the latest release

  2. Create a folder named directus-extension-field-actions in your extension folder (e.g /extensions/directus-extension-field-actions) and a /dist folder inside.

  3. Move the package.json to the created extension folder and the app.js and api.js into the /dist folder.

  4. Restart directus

The result should look like this:

ā”œā”€ā”€ extensions
ā”‚   ā”œā”€ā”€ directus-extension-field-actions
ā”‚   ā”‚   ā”œā”€ā”€ dist
ā”‚   ā”‚   ā”‚   ā”œā”€ā”€ app.js
ā”‚   ā”‚   ā”‚   ā”œā”€ā”€ api.js
ā”‚   ā”‚   ā”œā”€ā”€ package.json
<br />

šŸ–¼ Screenshots

ā†‘ Copy values from table views directly by clicking on them or an icon (configurable)


ā†‘ Copy field-values by clicking on it (only for readonly-fields and displays)


ā†‘ Add link- and copy-to-clipboard buttons to each field


ā†‘ Link preview and verification on external links (optionally)


ā†‘ Interfaces settings


ā†‘ Displays settings