I have a view which shows a list of nodes of two different node types. Both have an image field.
Now I would like to have the image style to be different for the two node types.
I can't use hook_views_pre_render()
, because then I would change the image style for all the nodes displayed. I also think I can't use a tpl.php file, because then I already have a URL, and can't retrieve another image style URL based on that that URL. Another option would be to define the image field twice in the view, and hide one depending on the node type, but I wouldn't know how to do that.
I'm using Drupal 7.
Any idea I overlooked?