Re: [chris] Need a little help getting started
Hi Chris. I finally figured out what the problem is but not sure how to stop it from happening. I create a template in Dreamweaver and then build my pages based on that template. I go to each page and copy in the php code and it works fine.
But, if I edit the template in Dreamweaver, it updates all the pages and replaces the top portion of the php - (this below):
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
require_once "/home/content/p/c/w/pcwebadmin2009/html/cmsAdmin/lib/viewer_functions.php";
list($aboutRecords, $aboutMetaData) = getRecords(array(
'tableName' => 'about',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$aboutRecord = @$aboutRecords[0]; // get first record
// show error message if no matching record is found
if (!$aboutRecord) {
print "Record not found!";
exit;
}
?>
Do you know how I can stop Dreamweaver from overwriting that piece of code each time? And, maybe this is a question for Dreamweaver and not you guys :) But, just hoping someone else has encountered this before and can give some advice.
By the way, LOVE your CMS Builder product. It took me about 4 hours to 'learn' the product. Not bad and WELL worth the money. I plan to purchase a CMS Builder license for every one of my clients that wants to manage their own site. Very cool!