Inserting Thumbnails into a Table Template

4 posts by 2 authors in: Forums > CMS Builder
Last Post: April 26, 2010   (RSS)

Re: [gkornbluth] Inserting Thumbnails into a Table Template

By gkornbluth - April 26, 2010 - edited: April 26, 2010

Well it's amazing what a good night's sleep will accomplish.

Problem solved.

For all of you who are interested, here's what I did (using a hint from my own CMSB Cookbook).

For each of the cells I defined 2 variables, one for the image and one for link to the detail page <?php @$myImage = $jewelryRecords[0]['image'][0]; ?>
<?php @$mylink = $jewelryRecords[0]['_link']; ?>


Then I inserted them in each cell, along with the appropriate record number and link code. <td align="center" valign="middle" class="noedge"><?php @$myImage = $jewelryRecords[0]['image'][0]; ?>
<?php @$mylink = $jewelryRecords[0]['_link']; ?>
<a href="<?php echo $mylink ?>"><img src="<?php echo $myImage['thumbUrlPath4'] ?>" width="<?php echo $myImage['thumbWidth4'] ?>" height="<?php echo $myImage['thumbHeight4'] ?>" alt="" border="0"/></a></td>

<td align="center" valign="middle" class="leftrightedge"><?php @$myImage = $jewelryRecords[1]['image'][0]; ?>
<?php @$mylink = $jewelryRecords[1]['_link']; ?>
<a href="<?php echo $mylink ?>"><img src="<?php echo $myImage['thumbUrlPath4'] ?>" width="<?php echo $myImage['thumbWidth4'] ?>" height="<?php echo $myImage['thumbHeight4'] ?>" alt="" border="0"/></a></td>


That did it.

Hope someone can benefit from my discovery.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Inserting Thumbnails into a Table Template

By Donna - April 26, 2010

Hey Jerry, glad to hear you got that sorted out. I love the "oh darn, I'll look at this later" method myself... :)
Donna

--
support@interactivetools.com

Re: [Donna] Inserting Thumbnails into a Table Template

Thanks Donna
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php