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

quicksketch’s picture

Yes, 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.

vulfox’s picture

Oh, 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.

quicksketch’s picture

Status: Needs review » Closed (fixed)