Page Viewer Options
Page Viewers have options at the top you can customize.
They look like this:
| <!--
STEP1: Load Record List (Paste this above other steps)
--> |
| <?php |
| require_once
"/www/htdocs/cmsAdmin/lib/viewer_functions.php"; |
| $options
= array(); |
| $options['tableName']
= 'article'; |
| $options['recordNum']
= ''; |
| $options['where']
= ''; |
| $record
= getRecord($options); |
| ?> |
| <!--
/STEP1: Load Record List --> |
All of these settings are automatically generated and generally
don't need to be modified. Here's what each of them do.
require_once
".../lib/viewer_functions.php";
This tells the viewer
where the program is located. The Viewer Generator automatically
figures out the right
path. If you move files around on your server you'll need
to update this page.
recordNum
This is the record
number to load. If defaults to the last number in the url
(eg: pageViewer.php?Article_Title_Here-221/).
where
If you are comfortable
with MySQL this field lets you specify your own custom MySQL
WHERE clause to match
a record. If this is set then recordNum is ignored.