Re: [Kittybiccy] Multi record elements - listing in separate columns
Hi,
Okay, I see. What you can do is create a variable that will store all of the incoming_job field values. You can then output this list using a separate foreach loop.
First, we need to get all of the incoming job values:
// load records
list($work_listRecords, $work_listMetaData) = getRecords(array(
'tableName' => 'work_list',
));
$incomingJobs = array_filter(array_pluck($work_listRecords, 'incoming_jobs'));
After that, we just need to output the values stored in $incomingJobs:
<strong>Incoming Jobs:</strong> <br />
<?php foreach ($incomingJobs as $job): ?>
<?php echo $job; ?> <br /?>
<?php endforeach ?>
<hr />
You can use this same technique for your other fields as well.
Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/