close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Making a New Page in PowerStore 3

Thread began 3/18/2010 8:20 am by paul397433 | Last modified 4/01/2010 5:36 pm by paul397433 | 1573 views | 13 replies

neilo

Hi Paul,

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.

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.

Save and upload your new page to your remote server.

To link to your new page, go back to your store Admin, > Content > 'View/Edit Content', scroll down to the area for 'Page Name: Home Page, Content Area: News' and click the edit icon to the right.

You can either add the link to your page by highlighting the 'Learn More...' text, clicking the Add link icon, and entering the filename of your page, i.e. 'news.php' in the 'URL' field, or by clicking the 'Source View' button in the Editor and changing '<p><a href="#">Learn More...</a></p>' to '<p><a href="news.php">Learn More...</a></p>'

This gives you a new page in the style of the rest of the store that you or your clients can update through the Content Management System.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...