0

I'm using the Media module (7.x-1.0) to support images and videos. According to the latest best practices I've been able to find, you're supposed to use a File field on your content type to display the media. For example, add a field called "Media" of type File to the Article content type, then use the "Media file selector" widget.

That part is fine, but I'm struggling to actually display the attached file. On the "Manage Display" field for the Article content type I only have four options (shown below). None of these map to any of the display modes defined for File entities (via the File entity module included in Media 7.x-1.x).

enter image description here

I've looked through the issue queue for Media and found some similar questions, with no solutions. There appears to have been a "Media" formatter available for the now deprecated "Media Asset" field type which allowed you to choose which File display mode should be used. This isn't available for the File field type, which is what Media recommends you use.

Has anyone been able to successfully choose a File display mode for a File field using the Media module?

1

Please see http://drupal.org/node/1390878

  • Beautiful, thanks. I must have missed that in the issue queue. – Chaulky Apr 5 '12 at 16:49
  • Just applied the patch to the 7.x-1.0 release of Media and it works cleanly! Love it when issues are already fixed :) Keep up the great work Media moguls!! – Chaulky Apr 5 '12 at 17:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.