Page list Blog Index Thumbnail template - tweak - LOAD small thumbnail

Permalink
Hi There

I have attempted to tweak the Blog Thumbnail template and all has worked well. However I wanted to load an image from the page attribute "Thumbnail" and not a block on the blog post page.

I therefore amended the template as attached - however not being proficient with my C5 php I didn't know how to call the resized image from the image helper, so instead have done the crappy route of loading the full image and then resizing via CSS.

Could you help me change this so I load the resized thumb as I am stumped (and have treid / and searched)?

Thanks

I have

<?php  
   defined('C5_EXECUTE') or die("Access Denied.");
   $textHelper = Loader::helper("text");
   $imgHelper = Loader::Helper('image');
   // now that we're in the specialized content file for this block type, 
   // we'll include this block type's class, and pass the block to it, and get
   // the content
   if (count($cArray) > 0) { ?>
   <?php  
   for ($i = 0; $i < count($cArray); $i++ ) {
      $cobj = $cArray[$i]; 
      $target = $cobj->getAttribute('nav_target');
      $title = $cobj->getCollectionName();
      $date = $cobj->getCollectionDatePublic('M j, Y'); ?>
<div class="grid_7 main-content-thumb blogroll blogcard relative">

View Replies:
mhawke replied on at Permalink Reply
mhawke
Try this instead.

<?php  
   defined('C5_EXECUTE') or die("Access Denied.");
   $textHelper = Loader::helper("text");
   $imgHelper = Loader::Helper('image');
   // now that we're in the specialized content file for this block type, 
   // we'll include this block type's class, and pass the block to it, and get
   // the content
   if (count($cArray) > 0) { ?>
   <?php  
   for ($i = 0; $i < count($cArray); $i++ ) {
      $cobj = $cArray[$i]; 
      $target = $cobj->getAttribute('nav_target');
      $title = $cobj->getCollectionName();
      $date = $cobj->getCollectionDatePublic('M j, Y'); ?>
<div class="grid_7 main-content-thumb blogroll blogcard relative">