Product image in Multi-level Category Functions

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

By esupport - January 7, 2009

hi dear sir

I would like to have product image in Multi-level Category Functions.
Level1 --- main product image
Level2 --- sub product image
Level3 --- product image
Level4 --- product in detail

I hope when user click image, the image will link to next level to show next category or product detail.

I tried some Fields
<?php echo $categoryRecords['thumbUrlPath'] ?> and <?php echo $upload['thumbUrlPath'] ?> etc..

They are all in error message.

Is it any possible to create the Category I want?
What field I can use in Multi-level Category.

Many thanks with all help!

-JH
-Jax H.

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