Closed (duplicate)
Project:
ImageField
Version:
5.x-2.0-rc8
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2008 at 19:17 UTC
Updated:
2 May 2008 at 00:37 UTC
hi,
I'm trying to set up customized tpl.php-files for my custom content types. for some reason, I don't get any output when calling $node->field_image_foo[0]['filepath'], what makes templating quite hard ;)
print_r($node) just gives me:
$node->field_image_foo[0] (array)
$node->field_image_foo[0]['fid']
48
$node->field_image_foo[0]['title']
$node->field_image_foo[0]['alt']
$node->field_image_foo[0]['view']
<img src="http://domain.tld/files/foo/foo.jpg" alt="" title="" width="420" height="460" />
the path inside the ['view'] is perfectly correct, i just can't call it to hand it over to imagecache. did i overlook something?
ah, here is my config:
If you need further information, just ask! I'm trying to set this up in a productional site, so i got a lot of modules installed, maybe there is some interference.
btw: thanks for this module, this is a huge (maybe the most important) enhancement to drupal's flexibility!
...sebi
Comments
Comment #1
breaklaw commentedI'm having this same exact problem. The image shows on the node, the thumbnail shows on the view, but trying get the imagename from $node->field_image_* gives no output.
Comment #2
quicksketchThis was fixed in RC4 (February 4). See http://drupal.org/node/204682 or just upgrade to the latest release of imagefield.
Comment #3
ppmax commentedis this issue fixed in RC8? Im using RC8 and when I do
print $node->field_image[0]['filepath']
...within my views-list-[viewname].tpl.php I don't get anything as an output.
For reference here's a thread I posted today:
http://drupal.org/node/251907
Comment #4
ppmax commentedI read that this issue was assigned as a duplicate. Can someone point me to the original issue? I can't find out if this was fixed, is being fixed, etc.
thanks!
PP