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

rating

adding new pages to a sitesculptor CMS

Thread began 6/28/2010 5:17 am by CraigR | Last modified 7/21/2010 8:52 am by cpfusion | 1940 views | 5 replies |

CraigRBeta Tester

adding new pages to a sitesculptor CMS

I have seen a few posts on this, whilst waiting for SiteSculptor upgrade solution from Webassist, here's a quick and easy way to add new pages to the sitesculptor CMS

(If you are squeamish around mysql and php, look away now)

In my case, I had a page called products.php already in the CMS, and I wanted to add productdetail.php

This is a 2 stage process, you need to add rows to a table in the database, and some php code to your page.

In order to add a new page to the CMS, you need to access the table pcms2_contents.

take a look at the table structure and find a some rows which relate to an existing page, preferably with the same editable regions as the page you wish to add. (image1)

Add a new row for each editable section you require, entering data in the ContentGroup, ContentRefID, ContentUserID, ContentPageName and ParentId fields. (Optionally, add content in the ContentValue field) (image 2).

Repeat this for all of the CMS regions you wish to add

The page should now appear in the CMS admin.

Now add some php to the page.
Wherever you wish the CMS content to appear, add the following line...
(this line relates to my productdetail page, content section.

<?php echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Product Detail' , 'content'); ?>

Repeat for the other CMS regions.

And you're done, (image 3 shows new rows in table)

Sign in to reply to this post

CraigRBeta Tester

couldn't leave it

OK, so i made it easier.

you still need to edit the php manually, (though some judicious tweaking of the template makes this easy).

Here is a form to insert multiple rows to your cms table.

No CSS, just plain vanilla, but it works, (as long as you have dataassist)

Hope it helps somebody, image attached showing example of how form should be completed, but refer to your own table for clarity.

Obviously, you can add more rows as required and tweak the page to your needs

:-)

Sign in to reply to this post

elevy388997Beta Tester

Where specifically do i add the php page you have attached? (Folder: WA_CMS ?)

If possible a 1,2,3 of the steps to do?

Thanks

Sign in to reply to this post

CraigRBeta Tester

sorry for the delay in replying, i've been away.

You can add the php page to anywhere in your site, so long as the includes files contained within it point to the correct destination.

in this example, try placing it in the root folder, (the same place as index.php) and see how you get on

Sign in to reply to this post

elevy388997Beta Tester

Works like a charm! Thanks

Sign in to reply to this post

cpfusion

I'd also just like to add my thanks to CraigR for creating this add_2_cms page.

Although I could have added things manually, it has made things that little bit easier until WebAssist update Site Sculptor to allow re-entry into the wizard to add new pages.

Craig

Sign in to reply to this post

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...