All links in the pages of your Web site will be either
- "absolute" links = all those pointing to a distant Web site, one that is not yours; absolute links must begin with http://
- "relative" or internal links = all those pointing to other Web pages on your site.
Dreamweaver automatically adjusts those relative links which is a blessing when you move sites around to various server locations and sometimes a curse: if you do not clearly define and synchronize your sites, every time you save an edited document, Dreamweaver will adjust the links incorrectly and they won't work!!!
So KEY to making your links work is Site Definition.
- When you use Dreamweaver in a lab, you will be forced to define your site everytime you use the lab. If you get good at it, you will be able to do so quickly. Various versions of Dreamweaver have various dialogue boxes for defining a site, but here are the key elements:
- You don't need to worry about server software such as includes, so check "no" if asked about that.
- Selecting the path to your Local site: First make sure that the path box is empty. In Windows, click on the file folder icon to the right of the path box, navigating by clicking the up-folder icon until you get to "My Computer," and then selecting your M-Drive. If that M-drive is not there under "My Computer," you have not successfully logged onto Miami's network -- you'll have to exit dreamweaver, saving the file temporarily on the desktop without first defining a site, and then shut down / start up, logging on.
- If you want to create a floppy disk containing the site as well so that you can work on it at home, without being logged onto the network, create another local site. This time the path will be A:\ and you can either leave that blank or create a folder on your floppy disk that has the same name as the folder inside public.www (on your M-Drive) in which your 171 project will be contained but says something like "floppy" as well: A:\[floppy + same name as the folder within public.www that is on your M-drive.]
- Either when you define the site on your floppy disk, or later, after clicking on "Site," "Edit," and selecting the site on the floppy disk, give Remote Info. as the M-drive site.
- Next, synchronize your sites:
With the site selected in the box called "Files" at the right of your screen, right-click (Windows) or Control-click (Macintosh), and then select Synchronize from the context menu.
The Synchronize Files dialog box appears:
- Select Entire site, and then either select "Put newer files to remote" -- which means things from your floppy will be transferred to your M-Drive -- or select "Get and Put." The latter means that whatever version is the latest version will be saved in both places.
- Whatever you do, when defining sites, DO NOT enable the "Check Out / Check In" feature. Doing so will deprive of you of write capacity (the ability to edit or add to your Web page on the floppy).
- Once you have synchronized your floppy Web site with your M-drive Web site, in the Files box on the right-hand side of the screen, click on the drop down box with site names in it (left topish), selecting your floppy-disk version, then click on "Local View" in the box to the right. Highlight all the new files you want to transfer over to the M-Drive, then click on "Site" at the very top of the screen, right-hand side, and "Put." Now all the relative links SHOULD work when you try your pages out using a Browser.