Making a new page in PowerStore 3
Neilo, I am a bit confused on how you do this
you start off by:
The recommended way would be to create a new page by going to Dreamweaver Menu > File > New > 'Page from Template' > and select the 'Main' Template to create your new page.
Then:
However, what is probably easier, would be to just open the kind of page you want your new page to be like (i.e. shipping.php), and (again in the Dreamweaver Menu) select 'File' > 'Save as' - and save it as whatever you want your new page to be called (i.e. news.php).
Then go to your online store Admin area, and select 'Content' > 'Add new Content'. Enter something for 'Page Name' and 'Content Area' (i.e. 'News' and 'Content') and click 'Insert'.
From the next page, copy the 'Developer Notes', which will be something like:
<?php
include('/home/users/pathto/yoursite.com/store/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerStoreConnection, $PowerStoreConnection, 'News' , 'Content');
?>
and back in your new page in Dreamweaver, in code view, find the lines at or near line 299-300:
<h1>Shipping</h1>
<div class="contentBox"><?php echo WA_getCMSContent($database_PowerStoreConnection, $PowerStoreConnection, "Support", "Shipping"); ?></div>
And replace everything between <div class="contentBox"> and </div> (in blue above) with the code that you copied from the Developer Notes. You will probably also want to change the '<h1>Shipping</h1>' heading to 'News' or whatever you want the heading (if any) to be.
the lines 299-300 are these in main.dwt.php I cannot find?
If you just create the page as in Shipping.php
there will not be these lines of code?
So not sure if you first start by>
The recommended way would be to create a new page by going to Dreamweaver Menu > File > New > 'Page from Template' > and select the 'Main' Template to create your new page
I am assuming you mean select main.dwt.php From PowerStore Template folder.
Please elaborate Im confused.