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. |
To download and install media types:
composer require -W drupal/acquia_cms_audio
to require the Acquia
CMS Audio module.drush in acquia_cms_audio -y
to enable the module.composer require -W drupal/acquia_cms_document
to require the
Acquia CMS Document module.drush in acquia_cms_document -y
to enable the module.composer require -W drupal/acquia_cms_image
to require the Acquia
CMS Image module.drush in acquia_cms_image -y
to enable the module.composer require -W drupal/acquia_cms_video
to require the Acquia
CMS Video module.drush in acquia_cms_video -y
to enable the module.To add a media field to a content type:
Sign in to Acquia CMS.
In the Acquia CMS 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:
In Media type, select the checkbox for the media type that you want to include.
Click Save settings.
Verify the changes on your site.
To add media to pages:
Sign in to Acquia CMS.
In the Acquia CMS 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.