Closed (fixed)
Project:
ImageField
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2009 at 10:53 UTC
Updated:
14 Dec 2011 at 12:24 UTC
I have a imagefield in views set to "hide from view".
How do I, using phpfield (manipulates the db results directly, row for row) view this image?
Im trying to create an advanced view, which displays the image on some conditions, and some not.
In other words, what PHP code is used to view an imagefield image in views?
Comments
Comment #1
tomotomo commentedWhat's "views php field"?
Comment #2
farald commentedIt's a custom module that acesses the row data directly, example:
http://drupal.org/project/views_customfield
So it should be simple to output an image (using imagecache preset "thumb"), I just can't figure out how:)
Comment #3
farald commentedComment #4
AdrianB commentedDid you solve this?
I'm looking for the same information right now, how to use the $data object to print an imagecache image using php in views custom field.
Comment #5
AdrianB commentedNevermind, I solved it.
Here's an example using an multivalue image field named "image" and a imagecache preset named "imagecache-preset":
Comment #6
quicksketchComment #8
gaintsev commentedThank you!