Product image in Multi-level Category Functions

2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 7, 2009   (RSS)

Re: [JH] Product image in Multi-level Category Functions

By Dave - January 7, 2009

Hi JH,

Try something like this inside the loop that displays your categories. Note, change the variable name and field name to match what you already have.

<?php foreach ($record['uploads'] as $upload): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>"
width="<?php echo $upload['thumbWidth'] ?>"
height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>
<?php break ?>
<?php endforeach ?>


Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com