Page 2
Course Objectives and Your Role As Site Maintainer
Course Objectives
1. To learn about MIT locker space, access rights, and web edit
best practices
2. To learn to use the basic features of Dreamweaver to
maintain web pages
3. To practice making the most typical types of web page edits
Your Role
In your role as site maintainer for your DLC, professor, course or activity there will
be several routine tasks you’ll be called upon to complete. Several are listed here..
Be aware that other tasks may require additional skills (for which you might seek
training) while other tasks (noted with an *) may require hiring a consultant.
Page 3
Safety Precautions
6. Do Not change the stylesheet or template – unless you are really sure
of what you are doing.
Page 4
Get Dreamweaver And Other Tools
Very low cost alternatives are iPhoto (free program with Mac OS), Picasa (free
download from Google for Windows and Mac) and Picnik (Mac and Windows web-
based photo editor).
Note: This class is being taught using Dreamweaver CS4. The latest version from
Adobe is actually CS5.5. In Adobe Dreamweaver CS4 go to the Window menu,
choose Workspace Layout and select Classic to use the layout most similar to
versions 8 and CS3.
Page 5
Get To Know Your Site
To get to know your site print the home page and pages you will edit.
The next step as a new site maintainer is to get to know your site. Print out the
pages of your site. Bring up each page in a browser and choose print. You can
begin with just the home page and the next level of pages.
Page 6
Write the name and location of pages and images.
Write the names of page and image files and their locations. After you click on a
link, note the url of the destination in the address bar. This will tell you the location
and file name. Right click (Windows) on an image to get properties which tells you
the name and location of the image.
Control click (Mac) on an image, select copy image address, paste the address into
the address bar and press return. View the image location and name in the new
window.
Page 7
[sullivan-11-01.pdf]
Page 8
Create a New Folder for Your Web Site Files
Give this folder a name which will allow you and others to quickly understand its
contents, such as cig-website, or stephens-lab-web-site.
.pdf file with information to be read (read only) – opens using Adobe Reader
Folders organize your files into folders (e.g., images, bios, research, news, styles,
Templates)
try to have no more than 15-20 loose files
Page 9
Get to Know DreamWeaver
Additional Panels
Insert Panel Document Editing Area double-click name to open and
close
Click Code to
view your html
code. Click
Split to show Files Panel
both Design
view and Code
view.
Expand/Collapse
Files Panel
Properties Panel
Page 10
Web Hosting at MIT
Web pages at MIT are “hosted” from dedicated computer space called
lockers.
Any organization, course, activity or individual at MIT may host web pages at no
cost, on server space in an Athena locker. A locker is simply a directory in the
web.mit.edu domain, which acts like the folders on a desktop computer, but is
located on a remote hard drive.
User lockers are automatically set up and allocated with 1.5 gigabytes of locker
space. They are located in a directory named the same as your username (e.g.,
web.mit.edu/sjones). This space may be used for file storage and for hosting web
pages.
Note: User web pages are actually hosted from a subdirectory named /www (e.g.,
sjones/www). If you arrived at MIT prior to 1998 a /www subdirectory might not
have been created. For help with this situation contact User Accounts.
Page 11
Define Site In Dreamweaver
4. Type a name for your project (e.g., same name as your project folder)
Page 12
5. Locate the Local Root folder on your hard drive using the browse icon. Mac
users can select the folder and then click Choose. Windows users must open
the folder and then click Select.
/afs/athena.mit.edu/user/s/j/sjones/www
With this information entered you are now ready to access your Athena locker.
Click OK to close the Site Definition dialog box.
Check in/Check out is a useful feature when multiple people edit the same
pages.
A feature within Dreamweaver which allows one person at a time to “check out”
(i.e., download) a file to edit. While that file is checked out no one else may edit
that page.
Page 13
Connect To Your Site Locker Using Secure FTP
Click the Expand/Collapse tool to see files on your computer and on the
server in a split screen.
Dreamweaver has a convenient view which lets you see local files and server files in
a window with two columns. Click the Expand icon on the Files panel for this view.
The expanded panel opens to the two column window. On the Mac you can click
the green circle to expand this two column window to full screen.
Mac users sometimes lose the small window behind the larger window or lose the
list of files from the Files panel. Simply choose Files from the Window menu or
press F8 to retrieve your two column window. Then click the collapse button.
To restore the default screen arrangement click on Windows > Workspace, and
choose Default (Mac) or Designer (Windows).
Page 14
To connect to the locker on the server click the Connect icon.
This will launch the connection process. You will be asked for your password each
time you connect for security reasons. Enter you Kerberos password. You will soon
see the file listing of the files and folders in your web locker.
If you get an ftp error, chances are you mistyped some information on the Remote
tab in the Site Definition dialog box. Choose Manage Sites from the Site menu.
Select the site name and click the edit button. Click the Remote info category from
the list on the right and locate and fix the error.
Page 15
Download All (or Some) Of Your Web Site
If you download less than the full site make sure your folder structures
match.
If you know that you will only be working on a small number of pages you can
download only those pages. It’s best to download the entire folder in which a page
resides and any Dependent files so you will have all the necessary files for your
page to be viewed on your computer, and you will mirror the file structure of your
live web site.
To get (download) the entire site click on the locker name at the top of the file
listing to select the entire site.
To select individual folders select one, hold down the Control key (Windows) or the
Command key (Mac) while selecting files.
To get (download) one file, select it and click the Get button or double-click the file.
Page 16
Dependent files include images and .css files.
You may be asked about downloading dependent files. These are files which would
be loaded by a browser when loading the page (images, style sheet files). Unless
you are sure you already have these on your computer it’s best to answer yes.
Page 17
Perform File Operations in Dreamweaver
To perform file operations in Dreamweaver make sure the Files panel is showing
on the left of your screen.
Page 18
Work Flow
Always assume that the latest version of a file is on the server. Assuming this,
your first action would be to get (download) the file you need to edit.
Once it’s on your computer you can edit your pages. Remember, you can only edit
pages on your computer, not directly on the server.
When your edits are complete, and the new pages have been previewed (more
later) and approved if necessary, you can put (upload) the pages.
3. Select the files and/or folders from the file list of your local root folder.
Note: You may be in a situation where edits must be approved, where someone
other than you will be uploading the new pages or where you are not the only one
making page edits. In these cases you will need to modify the work plan to include
others in the process but it should still follow the Get -> Edit -> Put cycle.
Page 19
Edit The Events Page
In this exercise we will edit the Events page on the Center for Industrial Growth
site.
When you first open this page you’ll notice that only certain parts of the page are
live while the rest of the page is locked. This page is based on a Dreamweaver
template which is a special file used to set the main design components which
remain consistent from page to page.
Template files are set up in Dreamweaver and can be identified by their .dwt
extension. Changing an element in the template file could change that element on
ALL the pages using that template.* So, be very careful if you happen to find
yourself in a template file!
* Actually, Dreamweaver would ask before updating all the pages. And, any
changed pages would then have to be uploaded to the server.
A file which uses a template can be identifies by a yellow notation in the top right
corner of the page when viewed in Dreamweaver.
Exercise:
1. Open the events folder and the index file in that folder.
3. Copy the information for the first event from edits.txt and paste it over the
event info at the top of the index page.
4. Scroll to the bottom of the web page and note that the rest of the events are
in a table.
Page 20
6. Copy the second set of event info from the edits.txt to the appropriate
cells of the new row.
To add a double space line break press Enter (Windows) or Return (Mac). To add a
single space line break press shift-Enter (Windows) or shift-Return (Mac).
To complete the edit process save your file(s) and choose Preview in Browser
from the File menu. Be sure to test your links.
To complete the Edit Cycle upload the files which have been changed.
2. From the Modify menu choose Table, and then choose Insert Rows or
Columns…
3. In the dialog box, enter the number of rows and choose above or below the
selection (the cursor location).
2. From the Modify menu choose Table, and then choose Delete Row
3. Repeat as necessary.
Page 21
Sample Template Document
The template document has no content. Instead, it has a placeholder for content
called an editable region. The editable region on this template is named cellmain.
The template allows access to the items which on locked on the html content
pages.
Page 22
Formatting Text with HTML Tags
Web pages get their formatting from two sources – html tags and styles.
When you type or paste basic text Dreamweaver by default assigns the paragraph
format to the text. It does this by adding the html tags open paragraph <p> and
close paragraph </p> before and after the text.
You can see this by clicking on the Code view icon in the top left corner.
For a section title you can change the designation of text from paragraph to
heading. Headings come in 6 levels each with a different relative size. Heading1 is
the largest.
To format as a heading:
1. Click once on the text to format (no need to select the text).
2. Choose the heading level from the Format pop-up box in the Properties
panel.
If you’d like to see the change in the html code switch to Code view.
Page 23
Working With Styles
You may have noticed that when you pasted the information from the edits.txt
into the index page the font and size changed to match the other formatting of the
other event info in the table. The data in the table cells are formatted by use of a
style.
The same style is typically used on multiple pages to keep formatting consistent. It
is likely stored in a stylesheet file which is identified by its .css extension.
Some styles are associated with html tags. Some styles are created by developers.
To determine whether a style has been applied to some text, click on the text and
look at the Style box in the Properties panel. If the Style box says none, then
note the tag assigned in the Format box. The content is getting it’s formatting from
this tag.
Be very careful with styles. Modifying a style’s formatting attributes will likely
change the look of text on multiple pages. Ask for help if you are not sure. Undo
any unwanted changes right away.
Page 24
Sample Style Sheet (.css) Document
.maroon { .bioheader {
color: #993300;} font-size: 18px;
color: #993333;}
.cellheader {
background-color: #FFFFFF; .biotext {
background-image: url(images/mitdome.jpg); font: 14px "Times New Roman", serif;}
background-repeat: no-repeat;
height: 60px; .newstext {
vertical-align: middle; font: 14px Arial, Helvetica, sans-serif;
text-align: center; color: #888888;}
color: #000000;
font-family: Arial, Helvetica, sans-serif;
background-position: 600px;}
Page 25
Edit The Research Page
To edit the research page you will add a reference to a research paper and create a
link from the reference to the actual research document.
Exercise:
1. Open the file The Effects of Planning on Productivity.doc and save this file as
a .pdf file. NOTE: This step has actually been completed for you.
2. Name the new .pdf file Sullivan-12-01.pdf and save it in the research folder.
This naming convention means Sullivan’s first research article of 2009. Using
a similar naming convention will help you keep your files organized.
On the Mac saving a files in the pdf format is part of the Print dialog box. On
Windows a special utility must be added to allow saving as a pdf.
4. Open the edits.txt file and copy the reference into the index page.
5. Highlight the name of the research article i.e., The Effects of Planning on
Industrial Productivity. This text will become the link.
6. Press and drag from the Point to icon to the right of the link edit box to the name of the
file in the Files panel. This allows Dreamweaver to automatically establish the link.
7. Press Enter or Return to complete the linking process or click on the content.
To complete the edit process save your file(s) and choose Preview in Browser from
the File menu. Be sure to test your links.
To complete the Edit Cycle upload the files which have been changed. Don’t forget
to upload the new pdf file!
Page 26
Make a New Bio Page From an Existing Page
In this exercise you will create a new bio page from an existing page. You will then
add a new person to the directory and link the directory entry to the new bio page.
You’ll also add an email link.
Exercise:
3. Choose Save As from the File menu and save the file as pankin-bio.html.
7. Move the pankin.jpg file to the images folder using drag and drop or cut and
paste. Do this inside the Files panel on the right.
10. Locate the pankin.jpg image and insert it. Add appropriate alternate text in
the dialog box.
Note: You can also double click an image to open the Select Image Source dialog
box. After inserting an image, click to select it and change the alt information in the
Properties panel.
Page 27
Edit the Directory Page
The next part of this exercise will be to add Professor Pankin to the Directory page,
create a link to his bio page, and create an email link.
3. Click in the table at the place where you would like to create a row to add
Professor Pankin.
4. Choose Table Objects from the Insert menu and create a new row.
6. Highlight the full name which will become the link to the bio page.
8. Drag the Point To icon (to the right of the Link edit box in the
Properties panel) to the pankin-bio.html file. Release the mouse when the
file name is visible in the Link box. Press Enter or Return or click on the
content.
10. In the Link edit box type mailto:pankin@mit.edu. Press Enter or Return.
Note: The text “mailto:email@domain” creates a link which opens the default email
program on a computer and automatically addresses a new message. There is no
space between mailto: and the email address.
To complete the edit process save your file(s) and choose Preview in Browser
from the File menu. Be sure to test your links.
To complete the Edit Cycle upload the files which have been changed.
Page 28
Help Resources at MIT
1. MIT Legal and Policy Guidelines for the Use of Web Space
ist.mit.edu/services/web/reference/requirements/legal-and-policy-guidelines
ist.mit.edu/services/software/available-software
ist.mit.edu/services/backup/tsm
ist.mit.edu/services/web/reference
ist.mit.edu/services/training/webpublishing
ist.mit.edu/support
ist.mit.edu/dcad
ist.mit.edu/services/training
lynda.mit.edu
ist.mit.edu/support/accounts
Page 29
Fill In The Blank!
Page 30
Answer Key:
html, tags, layout, server, link, http, browser, Dreamweaver, ftp, uploaded
Page 31