Drupal - Print path to image cache image? -
i have image added cck field. in node tpl file how can print url image cache image?
i need add image cache image inline style background image, div in node tpl file.
the content template module gives me few options not quite need. allows me print image cache image html content, doenst give me file path use inline style. allows me print image file path, full image not image cache version.
content template give me name of image cache preset, can manually write this: my-site.com/sites/default/files/imagecache/preset-name/file-name-token
however im thinking must cleaner way?
here have!
theme('imagecache', 'name_of_your_preset', $item['filepath']);
Comments
Post a Comment