Hi Jason, Thanks for all your help. [:)] Here's the code for my articlesList.php:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('/usr/home/mtgrov/www/htdocs/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
// load records from 'articles'
list($categoriesRecords, $selectedCategory) = getCategories(array( 'tableName' => 'categories', ));
list($articlesRecords, $articlesMetaData) = getRecords(array(
'tableName' => 'articles',
'loadUploads' => true,
'allowSearch' => false,
));
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<title>Mountain Grove Cemetery - Bulletin Board</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="keywords" content="Mountain Grove Cemetery Association, Bridgeport, Fairfield County, Connecticut, cremated remains, cemetery, crematory, cremation, crematorium, columbarium niches, urn gardens, memorialize" />
<meta name="description" content="Mountain grove has one of the finest Crematoriums in the state offers its own chapel and three cremation chambers. Additionally, Mountain Grove offers a wide choice of where to place cremated remains." />
<LINK HREF="mgc.css" REL="stylesheet" TYPE="text/css">
<!-- Add jQuery library -->
<script type="text/javascript" src="
http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="../fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="../fancybox/source/jquery.fancybox.js"></script>
<script type="text/javascript" src="../fancybox/source/jquery.fancybox.pack.js"></script>
<link href="../fancybox/source/jquery.fancybox.css" rel="stylesheet" type="text/css" />
<link href="../fancybox/source/helpers/jquery.fancybox-buttons.css" rel="stylesheet" type="text/css" />
<link href="../fancybox/source/helpers/jquery.fancybox-thumbs.css" rel="stylesheet" type="text/css" />
<link href="../jquery/screen.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../jquery/custom.js"></script>
<script type="text/javascript" src="../fancybox/source/helpers/jquery.fancybox-buttons.js"></script>
<script type="text/javascript" src="../fancybox/source/helpers/jquery.fancybox-media.js"></script>
<script type="text/javascript" src="../fancybox/source/helpers/jquery.fancybox-thumbs.js"></script>
<!-- Add fancyBox -->
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox").fancybox();
});
</script>
</head>
<body>
<h1><span style="font-size: 21px; font-family:'Times New Roman', Times, serif">Categories</span></h1>
<ul>
<li><a href="?">(All Articles)</a></li>
<?php foreach ($categoriesRecords as $categoryRecord): ?>
<?php echo $categoryRecord['_listItemStart'] ?>
<?php if ($categoryRecord['_isSelected']): ?><b><?php endif ?>
<a href="?category=<?php echo $categoryRecord['num'] ?>"><?php echo $categoryRecord['name'] ?></a>
<?php if ($categoryRecord['_isSelected']): ?></b><?php endif ?>
<?php echo $categoryRecord['_listItemEnd'] ?>
<?php endforeach ?>
</ul>
<h1><span style="font-size: 21px; font-family:'Times New Roman', Times, serif">Articles - List Page Viewer</span></h1>
<?php foreach ($articlesRecords as $record): ?>
<a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a><br/>
<?php endforeach ?>
<?php if (!$articlesRecords): ?>
No records were found!<br/><br/>
<?php endif ?>
</body>
</html>