How to Modify Media Module Image Display

The Media module has really become the de facto standard in handling media files in Drupal 7. I really like the concept of having files; images and videos as entities. When a file is an entity, you can attach custom fields and modify how the file is displayed by customizing specific view modes.

When you install Media for the first time it can be intimidating because there are a lot of moving parts. But if you already have an understanding of how entities, fields and view modes work in Drupal you will get the hang of it pretty quickly.

In this video, I’ll show you how to modify an image display using Media version 2. We’ll change the display so that the image alt tag is shown below the image. This will be useful if you want to display a caption below an image.

If you’re into media management in Drupal you should seriously check out the Scald module. It’s an alternative to using Media and it looks pretty good.

Modules

drush dl media-7.x-2.0-unstable7 file_entity-7.x-2.0-unstable7 views ctools token

Resources