Listing items from the List Option "Get options from database (advanced)"

3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 10, 2011   (RSS)

By gadefgaertgqe - October 7, 2011 - edited: October 7, 2011

Hi,

I have a series of products, and I am showing a list of other products they may be interested in.

To generate the list I am doing the following:

In the product section of CMSB I have added a list of multi-value check boxes to say what other products to suggest. The section is called 'related_models'

The list is generated by using the "Get options from database (advanced)" and simply looks at the current products, so in a way it is looking at itself.

What I can't figure out is how to list the suggested products information. I can show their names but that is it. How would I show for example the images associated with them.

I show their names by doing the following:

echo join(', ', getListLabels('peugeot_products_scooters', 'related_models', $peugeot_products_scootersRecord['related_models'])); ?>

Suggestions or pointers will be most welcome :)

Paul

Re: [Jason] Listing items from the List Option "Get options from database (advanced)"

Hi Jason!

Worked like a dream. Also took your excellent advice and now use 'num' instead of the name.

Many Thanks

Paul