close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Building a Content Management System

Thread began 10/01/2009 6:05 pm by jeremygadd2008388205 | Last modified 4/07/2010 12:25 pm by jeremygadd2008388205 | 3366 views | 10 replies

A Sound Design

Originally Said By: Jason Byrnes
  on your page where you wish to output the content you create a recordset to return the content for that page.


you can filter the recordset using the page column. When you store the content in the database, the page column is used to determine what page the content will be displayed on.


say you have content for the home.php page. In the page column you should have entered "home".

To output the home page content, create a recordset on home.php:
SELECT * FROM tblContent WHERE page = "home"

this will return all of the contnet areas for the home page, you can then use the recordset bindings to place the content where you wish,

Again, if you examine how the PowerCMS solution pack works, you can get a good idea of how to create your own CMS solution.  



Thanks Jason. My database, albeit a rather simplistic one at the moment, is as so at the moment:

CREATE TABLE IF NOT EXISTS `content` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(100) NOT NULL,
`content` mediumtext NOT NULL,
PRIMARY KEY (`id`)
)

What sequel do I have to add for the Page column? Would it be `page` varchar(100) NOT NULL, ???

If the PowerCMS had the option to save content to whatever page you like I would buy it and see how it works. The fact that it doesn't means that at $99 it's not a great investment unless I was also to actually use it on a web site for myself or a customer. Maybe if it came up as a special offer I would buy it.

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