The integration to Drupal enables publishing of images and videos from Mediaflow directly in Drupal's editing mode. It's a fantastic way for web editors to always have access to files that are GDPR-compliant, have correct alt texts, and videos that are accessibility-adjusted.
Settings in Mediaflow
The integration to Drupal can be used as soon as it is installed. However, for the files to be accessible and optimally usable, administrators need to prepare the settings for them in Mediaflow first.
Installing the Integration for Drupal
The integration is available in Drupal's module library. You can install it via Composer or by downloading the latest release as a Zip or tar.gz file and uploading it in the module section on your Drupal site. Don't forget to activate the plugin after you upload it. Mediaflow is also dependent on the Media and Media Library modules, so these need to be activated for the module to work.
Versions 8 and 9
The integration supports versions 8 and 9 of Drupal.
Configuring the Integration
To configure the plugin, go to "Configuration" in Drupal, and under the "Web services" section, you'll find a Mediaflow section.
In Mediaflow's settings, you can enter your key (ServerKey). This can be accessed in Mediaflow under the cogwheel - administration - Integration, and requires that you are a pro user in Mediaflow.
Enter this key under MFP Key, and also specify additional optional settings for forced alt texts, which media type should be used in CKEditor, and whether there should be restrictions on video embed type.
Configuring CKEditor in Drupal
To make the Mediaflow button appear in CKEditor in Drupal, a few settings need to be made.
1. Go to configuration and select Text formats and editors.
2. Select the CKEditor type editor where you want to add Mediaflow and click on configure.
3. Drag the Mediaflow button into the toolbar where you want the button to be.
4. Ensure that Embed media is checked under CKEditor settings. Without this, images cannot be rendered in the editor.
This will add a button in CKEditor where you can use Mediaflow's Fileselector to mount images or videos.
Configuring the Mediaflow Field in Drupal
In addition to working with Mediaflow in the editor, you can also add a field to content types. You do this by going to Structure > Content types and selecting Manage fields on the content type you want to add the field to.
In the list of fields, choose the type Mediaflow, enter a label, and save.
This adds a field where you can click the "Pick Mediaflow media" button to open Mediaflow's Fileselector.