This page contain the following:

Site Definition

The Site Definition is one of the most important aspects of how Dreamweaver functions. Once you have created a Site Definition, Dreamweaver knows

Why is this important?

Because Dreamweaver remembers how everything within the Site Definition is linked together. And by "links", that means any tags that use the href or src attributes. That would include links to other Web pages, links to images, links to the CSS file, links to Flash or other embedded assets, and links to JavaScript files which include the Spry features that come with this version of Dreamweaver.

If you work outside a Site Definition, be prepared to have your links scrambled and not functional once they are uploaded to the server. Even though your links may test fine in preview, the links are likely just linking to files on your specific drive on your specific computer. Here's a perfect example of a bad relative link to a folder called spiffy:

<a href="file:///C|/Documents and Settings/HP_Administrator/Desktop/spiffy/">

When it says file:///C| that means a place on your C: drive on your home computer. When you upload the files, the links are still looking JUST AT YOUR SPECIFIC DRIVE ON YOUR SPECIFIC COMPUTER. They are not looking for the files you just uploaded to the server computer. In other words, when someone else on their own computer (like, ahem, your instructor!) goes to use your Web pages, some or all of the links will be broken and your Web pages will look and/or act like junk. This is the biggest disaster possible when using Dreamweaver.

If you create links in Dreamweaver, within a site definition (green folders), you'll get good links. Here's a perfect example of a good relative link to a folder called spiffy:

<a href="spiffy/">

Use the EXPORT/ IMPORT feature within Dreamweaver. It works like this:

  1. Create the Site using the SITE Menu.
  2. Export the Site - this will allow you to save the .ste file to a location other than your computer's hard drive (such as your USB drive.)
  3. Import the Site - everytime you open Dreamweaver on a different computer, you can IMPORT the .ste file instead of creating a New Site from scratch.

Defining your Local Site

In Week 1, we discussed the concept of Local vs. Remote Sites. As a reminder, a local site is where your site is stored "locally" - or on your hard drive or USB drive. A remote site is where your site resides out on the Internet - typically a web server. The local site and the remote site should always mirror each other.

When you set up your site in Dreamweaver, you are only required to define the local site folder (you do not have to set up a Remote Server for every site). If you work in Dreamweaver frequently, you will get very skilled at setting up a local site because you will be doing it a lot! In fact, in our class, you will be setting up many local sites throughout the course of term - basically, everytime you start a new assignment, you will be creating a new local site.

Instructor Note:
For CAS111d, you will have MANY local sites set up within Dreamweaver.

 

Defining your Remote Site

In the "real world", you would most likely be working on multiple sites for multiple clients who all use different web servers. In that case, you would have a separate site definition set up for each client with both Local Site and Remote Site information stored in the Site Definition.

In our class, we are going to set things up a bit differently since ALL of your assignments for the entire term are going to one location - the SWS.

You will be setting up multiple LOCAL site definitions - but only one of them will have the REMOTE server information. This is the Class Site Definition and this is the one that you will use whenever you are ready to upload files to the SWS. You will be creating this in CAL3-2.

Instructor Note:
For CAS111d, you will have ONE remote site set up within Dreamweaver.

 

Back to the top of the page

Creating the Site Definition (current Dreamweaver CS6)

  1. Choose Site and choose New Site...
  2. Enter the following information for the Local Site Information:
    Local Site Info
  3. Click the Servers option in the list on the left-side of your screen.
  4. Click the + button.

    Server screen
  5. Enter the information for the SWS as shown in the image below:

    SWS info
  1. Click the Test button to verify your connection. If you entered everything correctly, you should see a message that says, “Dreamweaver Connected to your Web Server Successfully”
  2. Click the Save button.
  3. Click the Save button again.

If you always work on the same computer, you should only have to create the cas111d site ONE TIME! Every time you need to use it, simply select cas111d from the drop-down list in the Files Panel within Dreamweaver.

If you will be working on different computers or classroom computers for your assignments, you will not have access to the cas111d site definition on every computer. This is because the site definition information is stored on a computer's hard drive. Each time you need to access the cas111d site (when you need to upload your files), you will need to recreate the site following the instructions above. If you find this time consuming (it is!), you can also EXPORT the site definition which will allow you to put the site definition on your USB drive. Then when you sit down at a new computer, you can simply IMPORT the cas111d site and then it will show up in the Files Panel within Dreamweaver.

 

Back to the top of the page

Creating the Site Definition (Dreamweaver CS5 to CS5.5)

To set up a new Site Definition, follow these steps: https://sws.pcc.edu/help/ftp/cs5.html

  1. Click Site... from the Menu Bar
  2. Choose New Site...
  3. On the Site Tab (shown in the figure below), name your site after the class, and set the local folder to the folder you plan to use for the class.

    Site Definition setup for CS5 - Step 3

    In this example, the site, folder, and class all share the same name. This is a logical and easy way to keep everything organized. This Windows example also assumes the cas111d folder you will be working in is on an external drive, named E. Be sure to use the proper drive letter and path for your specific computer/drive.
  4. Click the Servers... item (just below the gray site box in the upper left)
  5. You'll see a window that looks like this:

    Site Definition Setup for CS5 - Step 5
  6. Click the black plus sign (in the red circle in the figure above) to create a new Remote server.
  7. When the Basic server setup window comes up, fill in the fields as shown:

    Site Definition Setup for CS5 - Step 7
  1. Click Save, then click Save again to get out of both windows. You have finished the process and you should notice that the folders in your Files panel are green (or greenish) instead of yellow.

 

Back to the top of the page

One Site Definition Per Server

Always construct one Site Definition for one server.

Instructor Note:
Let me state that again: one Site Definition for one server.

You may have read in a textbook, online or heard from another instructor that you should create separate site definitions for each project or assignment. This makes sense for the purpose of learning how to set up a Site Definition, but it makes no sense for the purpose of being efficient and logical.

Nothing will create the potential for more file management chaos than creating multiple Site Definitions -- if you make one error regarding the Local Root Folder or Remote Folder, chaos will ensue. Instead, stick to the rule of one Site Defition per server and your life will be easier.

Since you'll be working with the Student Web Server, you should make just one Site Definition for all of your work in class for that server. In other words, have all your chapter folders, assignment folders, and test folders under one main folder for the class. I recommend calling the main folder cas111d. (Keep all your folder and file names lower case and use no spaces.)

The folder on your computer or USB drive is equivalent to the folder you have defined on the server, so when you upload your files from your computer/USB drive, they will go to the proper server folder.

For example, in the case of this class, your folder on your computer or USB drive should be named cas111d. Your folder on the SWS is your username folder, which is always your name followed by a number, like janedoe18. In this example then, cas111d = janedoe18, which means they are at an equivalent folder level and any files or folders you upload that are stored under cas111d will automatically go under janedoe18 on the SWS and create an equivalent file/folder structure. That's good file management!

After you have completed a Site Definition, you will see the folders in the Files panel turn green -- GREEN IS GOOD. Those folders are all of the ones under your Site folder which, in this example, is cas111d. Always work inside green folders. If you are working in yellow folders, you are working outside the Site Definition and probably destroying your links. YELLOW IS BAD.

 

Back to the top of the page

Cloaking, export and import your Site Definition

Cloaking the site definition:

Site cloaking enables you to exclude files and folders from operations such as Get or Put or Synchronizing. You can also cloak all files of a particular type (fla, psd, ste, and so on) from site operations. 

  1. Choose Site and choose Manage Sites...
  2. Double-click on the cas111d site to open
  3. Click the Advanced Settings option on the left-side and choose Cloaking
  4. Check the box next to Enable Cloaking and Cloak files ending with: fields
  5. Put your cursor at the end of .psd, press the spacebar on your keyboard and type ".ste" (no quotes)
    Cloaking your site definition file
  6. Click the Save button
  7. Click the Done button to close the Manage Sites window.

To Export the site definition:

  1. Choose Site and choose Manage Sites...
  2. Select the cas111d site.
  3. Click the Currently selected site(s) icon.
  4. Select a location for the site definition file (preferably your USB drive).

To Import the site definition for use on a different computer:

  1. Choose Site and choose Manage Sites...
  2. Click the Import Site button.
  3. Locate the .ste file that you exported and click the Open button.
  4. Click the Done button to close the Manage Sites window.
  5. The cas111d site should show up in the Files Panel within Dreamweaver.

Back to the top of the page

Uploading Files and Folders to the SWS using Dreamweaver

Beginning with Week 3, you will be using the Site Management feature within Dreamweaver to upload your files and folders to the SWS. Each assignment contains instruction

  1. In the Files Panel in Dreamweaver, select the cas111d site from the site dropdown list. If you can't find it, you either need to recreate the cas111d site (see above), or import the site if you had previously exported it (see above).
  2. Click on the name of the folder you want to upload.
  3. Click the Put file(s) to "Remote Server" icon

    Files Panel
  4. If you see a dialog box with a confirmation about Dependent Files, go ahead and click the Yes button.
  5. Verify that your files were uploaded successfully. Using your browser, go to sws.pcc.edu and locate your directory. Make sure the files appear correctly with all images and links working.

Back to the top of the page

Uploading Files and Folders to the SWS using Filezilla

Filezilla is an FTP program that allows you to transfer files and folders from one location to another. For our class, you will be transferring files from your USB or Hard drive to the SWS. You can also use Filezilla to perform File Management tasks, such as renaming, deleting, moving, etc.

You will be using Filezilla for Modules 1 and 2. Beginning with Module 3, you will be using Dreamweaver to upload files.

PCC provides support for Filezilla. Refer to their support page if you need help using Filezilla.

How to Use Filezilla

 

Back to the top of the page

Problems Uploading with the Site Definition

The most likely cause of problems uploading are typographical errors in the path, username, and/or passwords. Double, triple, or quadruple check these. You can also export the Site Definition (see Backup above) and send that .ste file to the instructor for a second opinion.

In some rare cases, most notably on Macintosh computers, students have commented that they are unable to upload files and there are no other errors with their Site Definitions. The most likely reason is that their Mac firewalls (part of the Mac OS) are blocking the connection. To fix this problem,

  1. Click on Site...
  2. Click Manage Sites...
  3. Choose the Site Definition, the click Edit...
  4. Click on Servers... item (top left)
  5. Click the Remote Server item in the table on the right
  6. Click the pencil tool to edit that Remote Server
  7. You'll see the Basic server window (as shown in Step 7 of Creating the Site Definition above)
  8. Click the blue arrow in front of More Options to open that collapsed panel. It should look like this image:

    Problems Uploading

Back to the top of the page