Add or Replace Media

Media may take the form of images, documents and video.

Adding media is generally done in the body field of edit view of a content page.  Click the add media icon media icon and the following dialog will appear:

Media dialog

Choose an appropriate tab from the upper right of the dialog for the content you are adding

  • UPLOAD - add content that is stored locally on your computer
  • WEB - add external content such as a YouTube video
  • LIBRARY - these are the files that you have already added to Drupal.  This allows for re-use of content

Follow the dialogs after you have chosen or uploaded content and fill in the appropriate fields

  • Name: this is the administration name used by Drupal and is important for locating the media for re-use (this does not need to be the file name)
  • Alt Textis used by screen readers, search engines, and when the image cannot be loaded
  • Title Textis used in the tool tip when a user hovers their mouse over the image
  • Crop: allows for removing excess area of the image
  • Display As: drop-down allows choice of the size of the image

When you are done hit submit to insert the image into the page.

Media Alignment

Use the justification buttons Justification icons to float the image to the right, left or to center it.

Media Captions

When the media is selected, the caption icon Add a caption to an image becomes active and allow you to add captions to the image. 

Selecting the media and clicking the add media icon media icon allows you to edit some of the properties of the media.

Updating Media

If you want to update the media itself, such as the uploading a new revision of a document, you can either delete the media and re-insert the new revision or you can replace the file itself.  If you have multiple places in your site that link to the media, or if external sites link to the media, the preferred method is to replace the media.  Note that you must use the same file name if you are replacing media.

To replace media use the administration toolbar to navigate to the Content view page which is accessed by clicking Drupal Icon > Content on the  Drupal admin toolbar.  From the content view, choose the Files tab.  From files tab search for the media you would like to edit (filtering on the Type and/or Site fields):

Files tab

Files view

 

After pressing the edit button on the desired file you can change many of the fields associated with the media, as well, you can Replace file. After saving, all places that contain a reference to this media are still pointing to the correct location. Remember that you must use the same file name if you are replacing media.

MENU
CLOSE X