Information for: DEVELOPERS   PARTNERS   SUPPORT

Media types

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 Acquia CMS

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 Acquia CMS 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 Acquia CMS 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 Acquia CMS 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 Acquia CMS 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 Acquia CMS.

  2. In the Acquia CMS administrative interface, click Manage > Structure > Content Types > Select Content Type > Manage fields.

    image0

  3. Click Add field.

  4. In Add a new field, select Media from the dropdown list.

  5. In Label, enter a name.

  6. Click Save and continue.

    image1

  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.

    image2

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

  9. Click Save settings.

    image3

  10. Verify the changes on your site.

Adding media to pages

To add media to pages:

  1. Sign in to Acquia CMS.

  2. In the Acquia CMS 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.

    image4

  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.

    image5

  7. Click Save.

  8. Verify the changes on your site.