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.
Is it possible to get imagefield (or something else) to display preview thumbnail if the file uploaded to filefield happens to be an image?
I'm trying to make filefield look more like iTweak.
Comments
Comment #1
quicksketchYes, you can override theme_filefield_widget_preview() in your template.php file and make it show an image instead of the file information based on the file extension.
Comment #2
vulfox CreditAttribution: vulfox commentedOh, so it get's a bit complicated.
So I have to do some magic with imagecache and stuff too to get the preview generated at all?
Would be ideal to have filefield do what imagefield already does ...Or have iTweak for imagefield, Oh well, I guess it's time to try some coding.
Comment #3
quicksketch