Re: [zip222] Prev/Next links on a Detail page?
Got it. Here it is in case someone else is looking for this...
Place this in your header. change the table name to your table name:
list($prevRecord, $nextRecord, $firstRecord, $lastRecord) = getPrevAndNextRecords(array(
'tableName' => 'portfolio',
'recordNum' => getNumberFromEndOfUrl(),
));
And here are the relevant variables:
Previous Record: <?php echo $prevRecord['_link'] ?>
Next Record: <?php if($nextRecord): ?>
First Record: <?php echo $firstRecord['_link'] ?>
Last Record: <?php echo $lastRecord['_link'] ?>