PDA

View Full Version : Page Updating


info344553
11-08-2009, 12:00 AM
I seem to be having a problem where everything seems to be working fine and there are no error messages but the page is not updating.
The database is recording the changes but there is no text on the page.

The page is a totally blank php page created in dreamweaver and has all the relevant code that is needed.
This is the page:
<?php include "Connections/localhost.php"; ?>
<?php include "WA_CMS/WA_CMS.php"; ?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>testpage</title>
</head>

<body><?php echo WA_getCMSContent($database_localhost, $localhost,"testpage", "wholepage"); ?>
</body>
</html>

Please help

Thanks

Chris

neilo
11-08-2009, 06:34 PM
The PowerCMS generates the wrong code if all the CMS files and folders are not in the root folder for some (daft) reason.

So for instance, if all your PowerCMS files and folders are in a folder called (say) 'CMS100', then the two lines of code you put at the top of your page should be:


<?php include "CMS100/Connections/localhost.php"; ?>
<?php include "CMS100/WA_CMS/WA_CMS.php"; ?>


You will have to do that for each page you are puting CMS content in.


There is a way to solve this problem a little more elegantly in Step 3 of this pdf (http://www.pictuality.co.uk/downloads/Getting_PowerCMS_to_Work.pdf) of the steps I did to do mine.

info344553
11-08-2009, 10:33 PM
Hi Neilo

I did actually get it all working by putting all the folders within the root but its not the tidiest way of doing it.
Your instructions with help keep everything neat.

Thanks for your help, this is a better answer than I was expecting.

Cheers!!