Theming file field with ImageCache
| Project: | ImageCache |
| Version: | 6.x-2.0-beta10 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I am using Comment Upload and ITweak Upload to attach images to comments. Comment Upload allows me to attach a file to the comment and upload it while ITweak improves stetically the upload form and uses ImageCache to create thumbnails of the attached images.
I whant to create a block that displays all the attached images to comments of a given node.
I am able to create a view that displays all the files (file name linked to their url) attached to de comments of the node, but I don't know how to output the field as the thumbnail created by ImageCache.
Is it posible to theme this field output to display the ImageCache generated image instead of the file name linked to its url?
Thank you very much.

#1
you should review the field formatters that imagecache ships with i think there's one that will meet your needs. if not you can add your own formatter. start by looking at imagecache_field_formatter_info() then take a look at the theme_imagecache_formatter_*() theme functions.
#2
Thanks drewish. Will start looking into your suggestion.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.