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:

  • cck: 5.x-1.6-1
  • ImageField: 5.x-2.0-rc2
  • Imagecache: 5.x-1.x-dev
  • permissions: tmp-folder inside files, both owned by the apache-user
  • download-method: public
  • imagefield configuration: tried everything, mandatory or not, multiple or single
  • expected results: any output ;)
  • unexpected actual results: no output =/

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

breaklaw’s picture

I'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.

quicksketch’s picture

Status: Active » Closed (duplicate)

This was fixed in RC4 (February 4). See http://drupal.org/node/204682 or just upgrade to the latest release of imagefield.

ppmax’s picture

Version: 5.x-2.0-rc2 » 5.x-2.0-rc8

is 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

ppmax’s picture

I 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