Drupal - Get the image path of a CCK field from the fid


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $file = field_file_load($node->website_logo_fid);
  2. $output .= "<p><img src=\"".$file['filepath']."\" alt=\"\" /></p>";

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.