Closed (fixed)
Project:
ImageCache
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2010 at 00:25 UTC
Updated:
2 Jun 2012 at 23:56 UTC
Hello guys i made a field getting the first image from a multivalue cck image field , and it worked perfect but i tried to use theme function to use an image cache but it didnt work can i add a formatter to any field i made ??
i tried this code
print theme('imagecache', ‘galleryformatter_thumb’,$object->field_images_property[0]['filepath'], $alt, $title, $attributes);
and didn't work
but when i used this code
field_images_property[0]['filepath'] ?>" />
it worked perfect but i cannot controll the image by using imagecache
any idea or solution for this?
Comments
Comment #1
swentel commentedWorks perfectly for me, had a test with a preset called 'small':
The 'backticks' in your function might be the problem ...
Moving to imagecache queue - for anyone looking at the code, $object is the same as $node.
Comment #2
sabrawy commentedim gonna try it , i think u used return & i used print like tpl themming method.
i'm goint to let you know if worked .
thank you very much.
Comment #3
sabrawy commentedConfirm It wasn't working because i used "print" and when i changed it to "return" it worked like a charm .
Thank you very much for helping.
Comment #4
fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.