Available media types
The following table lists the media types available in the Content menu:
Field | Description |
---|---|
Audio | Adds external audio embeds. |
Document | Adds files and documents, such as PDFs. |
Image | Adds images. |
Video | Adds external video embeds. |
Adding media types to Drupal Starter Kits
To download and install media types:
- To add an Audio media type:
- Run
composer require -W drupal/acquia_cms_audio
to require the Drupal Starter Kits Audio module. - Run
drush in acquia_cms_audio -y
to enable the module.
- Run
- To add a Document media type:
- Run
composer require -W drupal/acquia_cms_document
to require the Drupal Starter Kits Document module. - Run
drush in acquia_cms_document -y
to enable the module.
- Run
- To add an Image media type:
- Run
composer require -W drupal/acquia_cms_image
to require the Drupal Starter Kits Image module. - Run
drush in acquia_cms_image -y
to enable the module.
- Run
- To add a Video media type:
- Run
composer require -W drupal/acquia_cms_video
to require the Drupal Starter Kits Video module. - Run
drush in acquia_cms_video -y
to enable the module.
- Run
Adding a media field to a content type
To add a media field to a content type:
- Sign in to Drupal Starter Kits.
In the Drupal Starter Kits administrative interface, click Manage > Structure > Content Types > Select Content Type > Manage fields.
Click Add field.
- In Add a new field, select Media from the drop-down list.
- In Label, enter a name.
- Click Save and continue.
In Allowed number of values, do one of the following to define the number of items to allow:
- Select Limited and define a specific value
- Select Unlimited.
In Media type, select the checkbox for the media type that you want to include.
- Click Save settings.
- Verify the changes on your site.
Adding media to pages
To add media to pages:
- Sign in to Drupal Starter Kits.
- In the Drupal Starter Kits administrative interface, click Manage > Content > Add Content > Select a content type that includes a media field.
Locate the media field and click Add media.
- Select the media type from the tabs on the left menu.
- Select a media thumbnail from the available options.
Click Insert selected.
- Click Save.
- Verify the changes on your site.