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
Comment #1
RobW commentedI 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:
This might sound complicated but try it yourself and it should make perfect sense.
Hopefully that helps with the first part of your question.
Comment #2
devin carlson commentedRobW provided a great example of display vs. file display and how file display works.
Comment #3
jzornig commentedI'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.
Comment #4
RobW commentedYeah, that's a total bummer right now, and a serious limitation. See #1283844: [meta] Improve WYSIWYG integration and #832372: Default "Link to file" formatter for all media types in wysiwyg.