I need to get only the first or second level of the navigation to appear in the footer while keeping the top nav intact.
Here is the DEV site:
http://207.58.137.58/index.php
As you can see it displayed EVERY page (showall) and for this site, it is way too much for the space.
Here is my top code:
<?php
require_once "/home/adwcom/public_html/cmsAdmin/lib/viewer_functions.php";
list($homepageRecords, $homepageMetaData) = getRecords(array(
'tableName' => 'homepage',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$homepageRecord = @$homepageRecords[0]; // get first record
list($categoryRecords, $selectedCategory) = getCategories(array(
'tableName' => 'menu',
'selectedCategoryNum' => '1', // defaults to getNumberFromEndOfUrl()
'categoryFormat' => 'showall', // showall, onelevel, twolevel
'useSeoUrls' => false,
));
?>
And the display code:
<?php foreach ($categoryRecords as $record): ?>
{<a href="<?php echo $record['_link'] ?>"><?php echo $record['name'] ?></a> }
<?php endforeach; ?>