Directus
Scaleflex DAM x Directus extension
Installation
Prerequisites
Register for a demo if you don't already have a Scaleflex DAM account.
Need to add a config CONTENT SECURITY POLICY to your .env file
Step 1: Install the extension via Marketplace or via NPM
Marketplace:

NPM Install:
Step 2: Active the Scaleflex DAM extension
Click on "Settings" on the left menu and after that click "Extensions" on the sub-menu.

Step 3: Show the extension on the left menu
Click "Settings" on the left menu and then click "Settings" on the sub-menu.
Scroll to block Modules and check two items "Scaleflex DAM Settings" and "Scaleflex DAM"

Step 4: Fill in your configuration

Token: Enter your Scaleflex DAM token here (eg: abcdefgh).
Security Template: To load the Scaleflex DAM Widget, you must create a Security Template in your Scaleflex DAM Hub.
Root directory: The directory in your Scaleflex DAM account, where the files will be stored.
TinyMCE Key: API key required for TinyMCE when using it with DAM, Here’s a guide on how to get the key: How to get tinymce cloud up in less than 5 minute
Advanced Configuration
Limit: The maximum number of files that can be added to a single field, default: 0 (unlimited).
Attributes: Attribute from Scaleflex DAM asset that you want to include in Client response.
Limit Type: File types are limited when using Widget.
How to use Scaleflex DAM field?
1. Field Interface
When create new field with DAM Assets please choose Scaleflex DAM

1/ Create a new field "Scaleflex DAM"

2/ Select your display type
On the list fields, select the new field just created. On the tab "Display", choose "DAM Assets".

3/ Go to your content Model and you will see the new field just created. Click on "Browse Assets" to select the assets in Scaleflex DAM

The result displayed after adding the assets

You can modify the image by clicking on "Show variants" to resize or crop the image.


In the list of items

Advanced Configuration Display
You can set the limit asset showing in the list of items.
In the Field Settings, click on the tab "Display" and choose DAM Assets. Input the limit items you want to show in the list.

And the last thing, you can configure your variants asset in the tab "Interface". For example:
Using TinyMCE Editor with Scaleflex DAM
1/ Create a new field "WYSIWYG with Scaleflex DAM"

2/ Using the editor, click on the button "DAM" to add the asset to your content.
Support image, video, and audio.


Last updated