Now that media entities have been replaced by file entities and the Styles module is no longer necessary, how does one manage the display of files? Or is Styles still necessary and i've simply misunderstood effulgentsia's point?

I've attached two screen captures. The first displays the "Manage File Styles" options available to the user at admin/config/media/file-types/manage/image/file-display. These would seem to me be the means by which a user manages the display of file entities (without Styles). The second screen capture however, displays the four display types available to me after i've created a file field with media file selector—"generic file," "table of files," "URL to file" and "large filetype icon." Of course, none of these allow the user to see an image or any actual media.

So how does one manage the display of media without Styles?

Comments

jrsinclair’s picture

I would really like to know the answer to this question too. I really think that the Media module makes Drupal 7 rock, but this particular aspect is really confusing me.

stephen Piscura’s picture

Component: Miscellaneous » User interface

Really? No one else is running into this same issue? I must be missing something obvious...

maristgeek’s picture

Subscribe....

RobW’s picture

#1026790: Allow view modes to be dynamically defined., specifically comment #17 and below should have what you're looking for.

Right now there are two display workflows, without styles using view modes, and with styles using file styles. Maintainers have commented that although it's no longer a dependency, styles is currently the preferred method of managing media display.

[edit] If you're only using images,

Preferred approach is to now use an Image field and use the Media gallery widget so you can natively use image formatters.

as stated here: #1213234-1: Use Image formatter on media fields

dave reid’s picture

Component: User interface » File entity
marvil07’s picture

Version: 7.x-1.0-beta5 » 7.x-1.x-dev

After taking a look to the code at 7.x-1.x, I see that actually all is in place. If you want to change how the field is rendered it's necessary to use the "Media" formatter and change the formatter settings to set the file view mode you would like to use. Sadly if I am correct there is a bug somewhere: #1266786-1: 'media' formatter settings do not show up on display fields page and video is hidden on node detail page

Quoting my workaround on the mentioned issue:

My workaround: without saving set the display format for the field as hidden, then set it back to "Media" and magically the formatter options for Media field wil appear and you can choose the one you like.

tsvenson’s picture

Status: Active » Closed (fixed)

Closing due to no activity for a long time. Feel free to reopen with updated info if issue still remains.

jinhcc’s picture

Any idea how to solve this? The actual image or video cannot be displayed using the file entity. The current suggested solution, if I am not wrong, is to use back the Multimedia asset field type. But it is going to be deprecated, isn't it contradicting to go back to use multimedia asset field type? Is there a way to see the actual media using file field type?

Chaulky’s picture

Status: Closed (fixed) » Active

I'm also beating my head against this wall. I'd rather not start out using Styles/File Styles if it's going away soon. I'm following the latest "best practices" I've been able to find which suggest using the "File" field type instead of the deprecated "Media Asset" field type. Unfortunately the "Media" formatter mentioned in #6 is only available for the deprecated "Media Asset" field type, when really we need it for the "File" field type.

gollyg’s picture

I think the patch at http://drupal.org/node/1390878 should fix the issue for you.

dave reid’s picture

Status: Active » Closed (duplicate)

Yes it should.