ok, i feel a bit of shame posting another support request about Imagecache theming...

i was close to post this on the forum, but this was likely to be far too specific to get an answer there, so i file it here in the hope someone is still in the mood of gracing me (and hopefully other stubborn non-coders who like to play with fire ;) with a hint!

PREMISE:
we concluded that to output our image (e.g. 'field_image' listed in a view) resized with imagecache we need to put the following snippet in our node template:

<?php foreach((array)$field_image as $item){
print '<img src="/files/imagecache/rulesetname/'.$item['filepath']. '">';}?>

QUESTION:
what would the code be to output same resized images in List Views, considering that the default code outputted by the Views_theming_wizard (always regarding the same 'field_image') is the following:

<div class="view-field view-data-field_image_fid">
  <?php print $field_image_fid?>
</div>

?

I tryed a crazy number of possible combos of $node, $view, [0], $item (...) hoping in the lucky shot, but seems there's no luck for me tonight...any help greatly apreciated!

Thank you very much in advance

Comments

introfini’s picture

I didn’t tried that, but I accomplished what you want with theming

node-[content-type].tpl.php and calling it with views, and it works fine.

marcoBauli’s picture

Status: Active » Closed (duplicate)

thanks introfini, this is more related to theming views with views-list-[viewname].tpl.php templates though..

Seems that imagecache lacks some sort of integration with Views at the moment, until this other issue gets fixed.

cheers,
marco

PS: setting this as duplicate