Closed (works as designed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2011 at 02:14 UTC
Updated:
25 Apr 2013 at 14:53 UTC
Hi there.
Is there a way to allow the media/image field to have a per node formatter?
What I am aiming for is a radio box next to the widget on the edit/add screen which chooses which formatter (really, image size) is used upon display?
(my other option is to have multiple image/media fields and the user will choose which to use depending on what their desired image size is.)
Comments
Comment #1
naheemsays commentedChange in title to make it more accurate.
Comment #2
naheemsays commentedI have used the following code to allow me to change the image style on a per entity basis (I have only tested per node):
Use this in conjunction with a text field called image_style which sets the name of the image style that you want the main image to be displayed with.
Comment #3
johnvUpon searching for this functionality, I found these modules. I haven't tested them yet:
http://drupal.org/sandbox/dman/1434822
http://drupal.org/project/formatter_field
Comment #4
mrfelton commentedThe formatter_field module works pretty well.
Comment #5
mpgeek commentedNo need to duplicate function. The formatter_field project takes care of this issue.
Comment #6
siefca commentedFormatter Field is not utilizing file entity, it's just another formatter.
You can choose to use it instead of rendered file entity, but then you will loose any additional fields you added to image file entity.Actually it is possible to use file entity with desired display mode. :)
Comment #7
siefca commented