Plan the Content Management System

Before you start building this application, make sure you have a correctly configured Dreamweaver site, and a working database connection. For more instructions regarding these actions, consult the Getting started book help file, which can be found in Help -> InterAKT -> Getting Started.

Through the tutorial, you will have to create several files and folders in your site's root. You can create them at the very beginning, so that you will not waste time with this operation again. To create files and folders in the site's root, use the corresponding options in the File menu of the Files tab.

The file structure will look as in the example below, and you can create it easily by unpacking the ZIP file corresponding to your server model from \tutorials\Content Management System\ in your site root:

 

After having created the files for your pages, it is time to set up the database that will hold the information to display. You can find the scripts needed to create an identical table structure inside the downloaded package, in the \tutorials\Content Management System\db\ folder, as an sql or mdb file, depending on the database server you intend to use.

For this tutorial, you will use two tables: one for the pages, and one for the users. The fields' names are self-explanatory, as you can see in the following image:

 

Note: The database diagram in the image above was built with MX Query Builder (also referred as QuB) to better illustrate the database structure. You do not need to build it in order to complete this tutorial.

 

Here's a listing of the tables and columns used in this database:

You can find the scripts needed to create an identical table structure inside the downloaded package as a SQL or MDB file, depending on the database server you intend to use. Import them in your database server management software (e.g. PHPMyAdmin, Microsoft Access etc).

Sample data is already entered in the database. To login into the administrative section of the site, the default account is:

Open the main index.php page and create a new connection named connCMS and configure it to connect to your newly created database:

 

Before moving on, remember to create the login page for your site. First configure your login settings, and then apply the Login Form Wizard on the login page in the site root.

In the next section you will begin creating the pages to manage articles and topics.