Re: [aharrow] Help needed to add content from multiple sections on one page
Hi aharrow,
Is it working right now? And do you need to sections to interact with each other at all? You should be able to just have both blocks of code at the top of the page like you have it. You can however remove some duplicate code and reduce it to this if you like:
<?php
require_once "/control/lib/viewer_functions.php";
list($newsRecords, $newsMetaData) = getRecords(array(
'tableName' => 'news',
'perPage' => '1',
));
list($aboutRecords, $aboutMetaData) = getRecords(array(
'tableName' => 'about',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$aboutRecord = @$aboutRecords[0]; // get first record
?>
And then display $newsRecords and $aboutRecord where ever you want on the page.
Let me know if that will work for you or if you need something else.
Dave Edis - Senior Developer
interactivetools.com