Display linked records

5 posts by 2 authors in: Forums > CMS Builder
Last Post: May 27, 2014   (RSS)

By Toledoh - May 18, 2014

Hi Guys,

I've got an advertising section called "advertising" which I have a publishDate and removeDate field.  Plus three select fields so that 3 business can be selected for that period, from the "businesses" table (or If easier, I could have a multi-select field "businesses" to choose the 3 businesses for that period.)

How do list those 3 businesses, plus some information associated to those records :ie. their logo, link to their detail page etc.

Cheers,

Tim (toledoh.com.au)

By gregThomas - May 19, 2014

Hi Tim,

Unfortunately the getRecords left join option only allows you to make one call to a particular section, plus it doesn't return _link or upload data. In this case the best way to do it would be to make 3 separate getRecord calls for each business.

I can give you some example code if you require, is this for a list page or for a detail page?

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By Toledoh - May 19, 2014

Thanks Greg - it's for a list page...  

Cheers,

Tim (toledoh.com.au)

By Toledoh - May 27, 2014

Got it! Thanks mate

Cheers,

Tim (toledoh.com.au)