Build the "dynamic" AJAX site and its structure

With the new empty site selected in the Files tab of the Files panel, access the New AJAX Site command from the Site menu (in Dreamweaver). The dialog box has two steps.

  1. Configure the first step of the New AJAX Site command as shown below:


                                                                

  2. Configure the second step of the New AJAX Site command as shown below:


                                                                

Once the AJAX site is created, notice its generated structure - index, the master page, is located in the site root, and all the other panel states (default or not) are located in the content folder from the site root:

 

The main page, index, is automatically opened. Notice the four panels in its layout: Header, Menu, Content, Footer. To be able to edit them individually, access the AJAX Panels floater from the Window menu in Dreamweaver and group it with the Files panel as shown here.

If you now click the AJAX Panels tab of the Files panel, it will display the AJAX site structure created with the New AJAX Site command above:

 

Notice the four panels listed in the AJAX Panels tab: Header, Menu, Content, Footer. The Content panel is the only one with more states, namely four (the default Home state corresponds to the Content panel selection). In browser, these states change according to the item selected in the Menu panel on the left, or if you click links that point to other pages/states that are not included in the menu (ArtistDetail and AlbumDetail, in this case so far).

 

Now that your site is not empty anymore, but has at least several files in it, you can create the database connection. Having the index file opened, define a Dreamweaver database connection: conn_music_catalog. Configure it to connect to your database server and make it point to the database containing the tables described earlier.

Another thing you should do right now is to copy the albums and artists folders provided in the .zip package (\tutorials\Music Catalog) in the content folder of your site structure (notice it in the Files tab of the Files panel). Then switch back to the AJAX Panels tab of the Files panel.

In the next topic you will complete the Menu panel by adding the artists names as menu items.