Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Current version doesn't have any provision to set default image(from mediafield) for a content type.
Comment | File | Size | Author |
---|---|---|---|
#7 | default_image_media-mediadefaultimage-2042363-7.patch | 965 bytes | roynilanjan |
#6 | default_image_media-mediadefaultimage-2042363-6.patch | 972 bytes | roynilanjan |
#1 | default_image_media-mediadefaultimage-2042363-2.patch | 1.15 KB | roynilanjan |
Comments
Comment #1
roynilanjan CreditAttribution: roynilanjan commentedPlease have a look the patch let me know view
Comment #2
roynilanjan CreditAttribution: roynilanjan commentedPlease review
Comment #4
roynilanjan CreditAttribution: roynilanjan commented#1: default_image_media-mediadefaultimage-2042363-2.patch queued for re-testing.
Comment #6
roynilanjan CreditAttribution: roynilanjan commentedRe-generated patch to review
Comment #7
roynilanjan CreditAttribution: roynilanjan commentedFor review again the patch!
Comment #8
Dave ReidComment #9
jienckebd CreditAttribution: jienckebd commentedHi roynilanjan,
This patch does allow you to set a default image for each field, but I'm not seeing how the image set on the field settings form is actually used when the field is rendered.
Bryan
Comment #10
roynilanjan CreditAttribution: roynilanjan commented@jienckebd yes you are correct for this mentioned branch we have to implement hook_field_update_field & hook_field_update_instance to render that field along with default setting value in a node, although I have seen that if i mention any media image with the specific node still not rendering properly, it produces the link only & even style not properly generating... may be it's still under work.
previously for 1.x branch even the multimedia asset doesn't render automatically , you need to inject
to get rendered
what do you think? please share your view...
Comment #11
roynilanjan CreditAttribution: roynilanjan commentedstill I think we need to implement theme_image_style to render the media asset in a node body.
even if we have default image ,
other wise style will not generates in file system,
e.g, for default image settings can be utilized as
Comment #12
ParisLiakos CreditAttribution: ParisLiakos commentedGiven that media field is deprecated, i wonder why this is a beta blocker
Comment #13
roynilanjan CreditAttribution: roynilanjan commented@ ParisLiakos can you please show how do you get that media field is deprecated?
Comment #14
ParisLiakos CreditAttribution: ParisLiakos commentedsee #1324316: Explain why Media Field module is deprecated in .info
Comment #15
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedis patch #7 for media 7.1.x? I didn't think there was a mediafield in 7.2.x.
Comment #16
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #17
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team