Getting Started with DreamweaverContentsUsing Dreamweaver to type HTML pages
Saving and loading your site in Dreamweaver
IntroductionUsing Dreamweaver to Edit Web PagesDreamweaver is a program that basically does the same thing as Notepad, but has a lot more features. When you first start Dreamweaver, it brings up a "Welcome Screen" which you can usually ignore. That's the window at lower right with the Green banner that says "DW" in the picture below. You can click the red button to make it go away.
Dreamweaver InterfaceBefore we try Dreamweaver, we need to understand where the various buttons and menus are. Then we can start a site and build a web page. Here's what the screen looks like for me right now, while I am working: (click to enlarge picture) You can see that I have a web site open, and I am editing a file called classnotes.html. I have put some red numbers to indicate specific areas of the interface. Here's what they mean:
Starting a Project in DreamweaverBefore you build your web pages in Dreamweaver you need to create a "site" for your project. A site is a folder full of pages for a particular website. When you set up a site you need to tell Dreamweaver where to store your files (usually a folder in the docs folder) and you need to give it the server information so you can upload your site and make it visible to the world. Each student will be assigned a folder on the server, with a URL, a username and password. You will need these. Let's get create a site: From the "Site" menu choose "New". The web server will ask you for a site name, and a URL. Hint It is often a good idea to open up your website in a web browser to make sure the URL is correct. Then you can copy the URL from the address window in the web browser. For example, I could call my site "The Secret Lives of Plants" and the url could be "http://www.brandx.net/secretplants". In this class website might have URL's similar to this: http://www.brandx.net/lacc/caot112/spring2011/jimpickrell, but with your site name, not mine. Here is a table showing all the questions:
At each step along the way, you will enter some values and then click "next" to go to the next page. When you hit the page for ftp, be sure to use the test button to make sure that your servername, username and password, all work. The username and password are case sensitive. When you are done, and you have successfully tested the username and password, then you are ready to start building pages. If you have problems, here are some things to check: Make user you know which folder Dreamweaver is using on your computer to store the files, and make sure it makes sense. Do not save your files on the desktop. It will make a mess. Make sure you chose FTP as the way to upload files. Test the username and password again and make sure they work. If you want to go back and fix your settings you can choose "edit sites" from the "Site" menu and then edit the site setup you created. Common error: Make sure that you haven't created multiple site definitions for the same site. A lot of students create multiple versions of the same site when they are having problems. Make sure you have only one site definition. Delete any duplicates to avoid confusion. Creating Your First Page in DreamweaverOK, you have started a site and tested the ftp upload. We're ready to start. Let's make a quick page and upload it and see if we can see it. Select file -> new From the "New Document" window that comes up select "html" for type and "none" for template. Click "Create". This starts a new page, but we haven't named it yet. Make sure we are in split screen mode. In the image earlier on where we discussed the interface, this is set in area number 3. Refer to that diagram and you will see what I mean. In the document window, in the preview area (see my diagram, it is labeled #4) type the following: hello world Dreamweaver will create matching html for this. The html portion of the split screen will look like this:
Notice that Dreamweaver has created a bare bones template for the page. The page will work without this stuff, but this is the right way to do things, so that's just fine. Let's save our file locally and give it the name "myfirstpage.html". Use file -> save to save the file and give it the name. You have already determined where to put the files when you created the site definition. There is an asterisk next to the filename in the document window. If you saved it then this asterisk goes away. Here's what my screen looks like after creating this page. Your screen should look somewhat similar, though you won't have as many pages as I do:
(click to enlarge picture)
Look this diagram over carefully. Do you see the HTML area, the document Preview area below it, and the list of files on the left side? Uploading your page to the serverNow let's upload the page. Click the upload button, which looks like this: and from the menu that comes up, choose "put". If you haven't saved your file, the computer will ask you if you want to save your file, and then computer will ask you if you want to upload dependent files. These are files like pictures that are part of your web page. We don't have any pictures so in this case the answer is no. If you say yes, it will attempt to upload those dependent files (pictures) when it uploads your page. The server should upload the file fairly quickly. If there are problems, go back to your site definition and check the ftp settings: server, username and password. Excellent. We have uploaded the page. Viewing the page you uploadedExplorer will let us look at the page if you put the address in the address bar. My page could be at the following address: http://www.brandx.net/lacc/caot112/spring2011/jimpickrell/myfirstpage.html Your should be something similar. If you can't get it right, try going to http://www.brandx.net/lacc/caot112/ and then click on "student pages" and navigate to your web page. Excellent! We have set up and tested Dreamweaver. Saving and Loading your siteNormally we work on the hard drive, and every time we make changes we save them. When you come back to your computer you can just open Dreamweaver and pick up where you left off last time. Double click on files in the file list at left and you can work on them. If you are working in the lab at LACC, the computer gets wiped every time it is restarted. This means you need to save your files elsewhere. If you upload your files to the server you can download them again next time you come to the lab and then continue your work. Alternately, if you have a thumb drive you can copy the whole site to the thumb drive for use next time. I will show you both ways to save and retrieve your site. Saving your site to a thumb driveStart the Site Manager with "Site -> Manage Sites" from the menu. Select the site you want to transfer in the left list box by clicking it once. If you have only one website, that site should already be selected. Click the "Export..." button. A dialog box with a title "Exporting site" (followed by your site name) will appear. Make sure that the radio box for "Back up my settings (includes login, password, and local paths)." is selected, and click the "OK" button. In the "Export Site" dialog box that follows, locate your USB thumb drive or external hard disk. By default, Dreamweaver will set the filename of your exported settings to the name of your site followed by a ".ste" extension. For example, if you named your site "The Site Wizard", the suggested filename will be "The Site Wizard.ste". I recommend that you leave the filename to the name Dreamweaver suggests, unless you have some special reason to want to change it. You should probably leave the extension set as ".ste" so that Dreamweaver recognizes it on your new computer as a site definition file. Memorize the name (or write it down somewhere) so that you can find it later, and click the "Save" button. Loading your site from a thumb drive
Once you've done the above, you should be able to work on your web pages as you did last time. Be sure when you get done working, you will need to save the whole thing to the thumb drive again. (thanks to mysitewizard.com for part of this explanation) How to download your site from the serverIf you have not saved your site to a thumb drive, you can download it from the server. Set up your site in the site manager as explained above when we created a new site. When you are done you should have the site folder, location, server, ftp username and password and so on all set, but you won't have any files in your site. Now, click on the download site button. The it's the downward pointing arrow button in the following diagram: When you click this button, the entire site will be downloaded, including all files. Have a look at the file list on the left side of the screen. is everything there? If so, you are ready to start work.
|