Changes in Version 0.954
This version expands the role of the page hit count table to hold all of the information particular to that page, while the contents table now only holds the sections of data. With this in mind, the count table is now called the pages table.
The update routine assumes that version .953 is installed.
The update will move the contents of the "page_title" field from the contents table to the pages table.
The menus are still generated by the sections in the content table.
To add new items to a page, edit the "edit_header" item info in the setup table to add the new input fields to the edit mode page. Note that all of the added fields must be listed in teh comma-separated list in the hidden input field named "fieldlist".
Here's a typical added table section: <tr> <td colspan="3" nowrap> Keywords: <input name="keywords" type="text" id="keywords" size="40" value="$keywords" /> Description: <input name="description" type="text" id="description" size="40" value="$description" /> <input name="fieldlist" type="hidden" id="fieldlist" value="keywords,description" /> </td> </tr>All of the variables in the pages table are now available for use within the template.
For example, to show the numner of page views & the last edit date, the folowing PHP code should be placed in the template file:
<?php echo "$page_views<br />$last_edit"; ?>
Setting meta tags
One main purpose of these user-defined variables is in the setting of web page META tags, such as keywords and descriptions used by some search engines. From the above added section, the following code might be added to the head section of the template:
<meta name="keywords" content="<?php echo "$keywords"; ?>" />
<meta name="description" content="<?php echo "$description"; ?>" />
This would result in the entries for keywords and description to be placed in the appropriate locations in the head of the generated web page.