There is one piece in the configuration that I do not quite understand:
admin/config/media/file-types/manage/image/display
vs.
admin/config/media/file-types/manage/image/file-display
and how they relate to what is available as option in the WYSIWIG "Add media" plugin. The documentation at http://drupal.org/node/1399838 mentiones the five "display modes" that I see on those two configuration pages but I don't get what's the exact purpose of the one vs. the other. By lots of trial and error I got media items added as field in a content type to show in the size I want it. Ok, but I would love to understand how all this relates.

Now I have one more usage scenario: I want to have links in the body text pointing to media items (images). The link should point to the image rendered in original size and the link text (I want only text, not a thumbnail or such in the body) should be the image title.

is this possible? How to configure the "Link" "display mode" or "file display mode" to come up like I need it in a WYSIWIG textarea?

Comments

RobW’s picture

I thought this was confusing at first too. In plain English:

Manage Display

This is the same as Manage Display in your content types. It lets you set the order and display of the fields you've attached to the file entity, the same way you would on a content type.

So:
File entity -> File type (Audio, Video, etc) -> Manage Fields and Manage Display
is the same as:
Nodes -> Content types (Page, Article) -> Manage Fields and Manage Display.

Manage File Display

This is how the whole file entity will be displayed to a site user. Back in whatever content type you have added your file field to, look at Manage Display. To the far right of your file field you'll see a section called View Modes. Click on that and you'll be able to pick Default, Link, Preview, Small, Large, and Original. These correspond to the options in Manage File Display, where you pick which formatters to use to display a particular file entity type.

So, to put it all together, if you have a field called media_field and are using Media: Youtube, you might want to show an image of the Youtube video on the content type teaser, and the whole video on the full node. To do this you'd:

  1. go to manage fields on the content type that contains media_field
  2. while in the default tab, for media_field choose the view mode default
  3. go to the preview tab and for media_field choose the view mode preview
  4. then, in Configuration -> Media-> File Types, go to Manage File Display for Video
  5. in the default tab add the Youtube embed formatter
  6. and under Preview add the Youtube preview image formatter.

This might sound complicated but try it yourself and it should make perfect sense.

Hopefully that helps with the first part of your question.

devin carlson’s picture

Status: Active » Fixed

RobW provided a great example of display vs. file display and how file display works.

jzornig’s picture

I'm also trying to get a link to a file in the wysiwyg and all I can manage is an image tag to a generic file image with no a tag or href to the actual file.

RobW’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.