1.8.4 ā€¢ Published 2 months ago

directus-extension-field-actions v1.8.4

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 months ago

npm.io

šŸ° 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.

āœØ 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:

  • default action (does nothing custom)
  • Copy-action (copied the value)
  • Link-action (openes the link in a new tab)

āš™ Settings

Icon position

  • The icons can be placed before or after the content
  • The setting can be set for the interface and display, as well as the copy and link button indipendently
  • Example in the screenshots below

Custom prefix

  • You can set custom prefixes for copy-/ and link-actions.
  • Prefixes can be entered manually or use a defined variable (Project URL setting)
  • The setting can be set for the copy and link button indipendently, each for the interface and the display
  • Example in the screenshots below

Link target

  • Set the link-target to the same, or a new tab

Warn before following external links

  • Enabling this setting prompts users with a confirmation popup displaying the full link when clicking on external links
  • If disabled, external links open directly.

Hide field value (display only)

  • Hides the field value for a button only mode
  • Mostly to be used in combinaiton with button labels

Button labels (display only)

  • Add custom labels to the copy-/ and link icons for the display
  • Mostly to be used in combinaiton with the "Hide field value" option for a button only mode

āš™ļø 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

šŸ–¼ Screenshots

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


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


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


npm.io

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


npm.io ā†‘ Interfaces settings


npm.io ā†‘ Displays settings


1.8.4

2 months ago

1.8.2

3 months ago

1.8.1

3 months ago

1.8.0

3 months ago

1.7.0

3 months ago

1.8.3

3 months ago

1.6.3

10 months ago

1.6.2

10 months ago

1.6.6

6 months ago

1.6.5

6 months ago

1.6.1

11 months ago

1.6.0

11 months ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago