SOLVED: Generate a thumbnail for image added to block

Permalink
I used Jordan Lev's Designer Content Add-On to create a new block that has a field for selecting an image from the File Manager. I'm creating a custom page_list template that has to create two blocks of HTML content to be output onto the page for use in a javascript tab structure (I need to generate one HTML structure for the tabs and another for the sliding panels but both using the content from off of the same pages).

I've gotten the tab structure created... but I need to generate a 130px X 130px thumbnail of the image selected in the custom block on the child page. Here's what I've got so far:
if (count($blocks) > 0) {
   foreach($blocks as $block) {
      $btc = $block->getInstance();
      $name = $btc->field_2_textbox_text;
      $title = $btc->field_3_textbox_text;
      $img = $btc->field_4_image;
      $imgTag = $imgHelper->outputThumbnail($img, 130, 130, $return = true, $crop = true);
      $blockID = $block->getBlockID();
      if($count == 0) {
         $thumbContent .= '<div class="thumbnail" style="display: none;"><a href="#' .$blockID .'" title="View Details">' . $imgTag . '</a><p><span class="name">' . $name . '</span><br /><span class="title">' . $title . '</span></p><div class="clearer"></div></div>';
      }else {
         $thumbContent .= '<div class="thumbnail"><a href="#' .$blockID .'" title="View Details"></a><p><span class="name">' . $name . '</span><br /><span class="title">' . $title . '</span></p><div class="clearer"></div></div>';
      }
   }
}

But nothing is getting output for the image tag... so I'm assuming somethings broken. :P

Anyone have any ideas? Anyone ever done this before?

Thanks!

- John

arrestingdevelopment
 
arrestingdevelopment replied on at Permalink Reply
arrestingdevelopment
Jordan provided the answer I needed and got everything working! HOORAY!

See his answer here:http://www.concrete5.org/marketplace/addons/designer-content/forums...

Thanks!

- John