Customizing thumbnail output in page_list

Permalink
The information that is currently commented in page_list view.php is outdated... I would like to know how to adjust the size of the thumbnail output, or to not have it resized at all. Any help is appreciated.

thanks

 
katz515 replied on at Permalink Reply
katz515
5.7 version does work to certain point.

Here is the sample code for 5.7 thumbnail with legacy thumbnail method for Page List block

<?php
$ih = Core::make('helper/image');
foreach ($pages as $page):
$thumbnail = $page->getAttribute('thumbnail');
$image = $ih->getThumbnail($thumbnail, 235, 140, true);
?>
<img src="<?php echo $image->src;?>" width="<?php echo $image->width;?>" height="<?php echo $image->height;?>" alt="">
<?php endforeach; ?>