'homepage',
'where' => '', // load first record
'loadUploads' => true,
'allowSearch' => false,
'limit' => '1',
));
$homepageRecord = @$homepageRecords[0]; // get first record
if (!$homepageRecord) { dieWith404("Record not found!"); } // show error message if no record found
list($footer_contentRecords, $footer_contentMetaData) = getRecords(array(
'tableName' => 'footer-content',
'where' => '', // load first record
'loadUploads' => true,
'allowSearch' => false,
'limit' => '1',
));
$footer_contentRecord = @$footer_contentRecords[0]; // get first record
if (!$footer_contentRecord) { dieWith404("Record not found!"); } // show error message if no record found
list($catalogue_introductionRecords, $catalogue_introductionMetaData) = getRecords(array(
'tableName' => 'catalogue_introduction',
'where' => '', // load first record
'loadUploads' => true,
'allowSearch' => false,
'limit' => '1',
));
$catalogue_introductionRecord = @$catalogue_introductionRecords[0]; // get first record
if (!$catalogue_introductionRecord) { dieWith404("Record not found!"); } // show error message if no record found
// load record from 'insets-panels' uses the selected panel from the services section.
list($insets_panelsRecords, $insets_panelsMetaData) = getRecords(array(
'tableName' => 'insets-panels',
'where' => 'num = '.$catalogue_introductionRecord['inset'],
'loadUploads' => true,
'allowSearch' => false,
'limit' => '1',
));
$insets_panel = @$insets_panelsRecords[0]; // get first record
if (!$insets_panel) { dieWith404("Record not found!"); } // show error message if no record found
list($catalogue_categoriesRecords, $catalogue_categoriesMetaData) = getRecords(array(
'tableName' => 'catalogue_categories',
'loadUploads' => true,
'allowSearch' => false,
));
list($catalogueRecords, $catalogueMetaData) = getRecords(array(
'tableName' => 'catalogue',
'perPage' => '10',
'loadUploads' => true,
'allowSearch' => false,
'orderBy' => 'dragSortOrder DESC ',
));
list($catalogue_introductionRecords, $catalogue_introductionMetaData) = getRecords(array(
'tableName' => 'catalogue_introduction',
'where' => '', // load first record
'loadUploads' => true,
'allowSearch' => false,
'limit' => '1',
));
$catalogue_introductionRecord = @$catalogue_introductionRecords[0]; // get first record
if (!$catalogue_introductionRecord) { dieWith404("Record not found!"); } // show error message if no record found
?>