I all,

I'm using this fantastic module and I'm very satisfied about its potential.

But now I have some doubts:

  1. Is still necessary to use the core "image" field when the "file" field can manage also images with media module?
  2. What about the best practices once installed media module? I have to forget the core "image" field and manage all kinds of media with core "field" file?
  3. I'm asking this because I've noticed that the "Media file selector" is however available for the core "image" field: why?
  4. If i enable the "Media file selector" applied to a core "image" field it then allow me also to include any kinds of media in addition to images: is this a nonsense/ambiguity?
  5. To conclude: if core "image" field is still useful for something, when is better to use it instead of managing images with "file" field? Use cases?

Thanks to everyone who is able to dissolve these doubts

MXT

Comments

dave reid’s picture

Status: Active » Fixed
  1. It's a matter of preference. Both can be used. With image fields the idea is that you can provide an alternate text for the image when used in that specific field instance. We currently don't display this field in Media but we should. There is an issue for this.
  2. You can use either. If you know you have a field that is image-only, you should be free to use Image fields if you want.
  3. Because we can easily support both, and both file and image are provided by core and we wanted to provide flexibility to use the Media widget for both.
  4. Sounds like a real bug. I've opened #1600702: Hide the 'Allowed remote file types' Media widget option when used on image fields to fix this.
  5. Using the core image field is useful if you want to easily output the image using an image style on the 'Manage display' tab for the field. Or if you know for sure that you will have image only content. For example, Drupal 8 will be converting user pictures to an image field attached to users.
mxt’s picture

Thank you very much for your answers!

All is more clear now, thanks!

dddave’s picture

I might add that a lot of responsive themes provide the correct html5 tags for imagefields out-of-the-box so that such images are responsive without further ado.

Status: Fixed » Closed (fixed)

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