Loading...

Media types

Available media types

The following table lists the media types available in the Content menu:

FieldDescription
AudioAdds external audio embeds.
DocumentAdds files and documents, such as PDFs.
ImageAdds images.
VideoAdds external video embeds.

Adding media types to Drupal Starter Kits

To download and install media types:

  1. To add an Audio media type:
    1. Run composer require -W drupal/acquia_cms_audio to require the Drupal Starter Kits Audio module.
    2. Run drush in acquia_cms_audio -y to enable the module.
  2. To add a Document media type:
    1. Run composer require -W drupal/acquia_cms_document to require the Drupal Starter Kits Document module.
    2. Run drush in acquia_cms_document -y to enable the module.
  3. To add an Image media type:
    1. Run composer require -W drupal/acquia_cms_image to require the Drupal Starter Kits Image module.
    2. Run drush in acquia_cms_image -y to enable the module.
  4. To add a Video media type:
    1. Run composer require -W drupal/acquia_cms_video to require the Drupal Starter Kits Video module.
    2. Run drush in acquia_cms_video -y to enable the module.

Adding a media field to a content type

To add a media field to a content type:

  1. Sign in to Drupal Starter Kits.
  2. In the Drupal Starter Kits administrative interface, click Manage > Structure > Content Types > Select Content Type > Manage fields.

  3. Click Add field.

  4. In Add a new field, select Media from the drop-down list.
  5. In Label, enter a name.
  6. Click Save and continue.
  7. 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.

  8. In Media type, select the checkbox for the media type that you want to include.

  9. Click Save settings.
  10. Verify the changes on your site.

Adding media to pages

To add media to pages:

  1. Sign in to Drupal Starter Kits.
  2. In the Drupal Starter Kits administrative interface, click Manage > Content > Add Content > Select a content type that includes a media field.
  3. Locate the media field and click Add media.

  4. Select the media type from the tabs on the left menu.
  5. Select a media thumbnail from the available options.
  6. Click Insert selected.

  7. Click Save.
  8. Verify the changes on your site.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation