Theming file field with ImageCache

gonzalof81 - October 7, 2009 - 21:48
Project:ImageCache
Version:6.x-2.0-beta10
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

drewish - October 10, 2009 - 21:31
Status:active» fixed

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

gonzalof81 - October 13, 2009 - 13:16

Thanks drewish. Will start looking into your suggestion.

#3

System Message - October 27, 2009 - 13:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.