Closed (fixed)
Project:
ImageField
Version:
6.x-3.0-alpha2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2008 at 18:32 UTC
Updated:
2 May 2010 at 16:11 UTC
in a script I would like to select (db-call) the filepath, does anybody has an example how to do this?
Thank you!
Comments
Comment #1
stoltoguzzi commentedI made it this way, I'm shure there is an bether way:-)
img_node is my current node
Comment #2
quicksketchYou could also just look in $node->field_image[0]['filepath'], where "field_image" is the name of your ImageField. However if you're doing a database query and the node is not available, yes the approach you've used is fine.
Comment #4
giorgio79 commentedWas just looking for how to output an image based on the fid thank you.