|
Testing & Maintaining Links
As your web page changes over time, your links may require
updating. If you link to other web pages, their location may
change or become unavailable. The following instructions help
you to maintain the links in your site to compensate for these
types of changes.
NOTE: If your page
contains relative links to pages on the UW-Eau Claire server,
you will want to establish an HTTP address to the live area for
link detection when defining a site. For more information see
Defining a Site or
Defining Local & Remote Sites.
Testing
Links with Link Checker
Dreamweaver's Link Checker is a powerful tool that you
can use in maintaining your website. Using Link Checker,
you can check links in a single web page, selected web pages
within your site, or throughout the entire site. From the
resulting report, you can correct broken links from the
Results pane or from the Properties pane.
It is recommended that you test the links before and after the
pages are live on the web server. If possible, have someone else
test them that does not have the same drive mappings as you do.
HINT: An easy way
to test your links is to preview your page in an Internet
browser. For information on additional preview options, see
Previewing Pages in Netscape and Internet Explorer.
NOTE: Web users
may or may not be viewing your web page with a browser that
supports the ability to open a blank preaddressed email message
when they click a Mailto link. For more information
about email programs and browser compatibility, see the
Mailto
Bulletin in the WebDev collection.
Accessing the Link Checker
The Link Checker is part of the Results pane. Having it
accessible while you are working with links in your site makes
checking those links easy and convenient.
-
From the Window menu, select Results »
Link Checker
OR
Press [Ctrl] + [Shift]
+ [F9]
T he Results pane appears with the Link Checker
tab selected.
Checking Links in the Current Web Page
-
Access Link Checker
-
Click CHECK LINKS
» select Check Links In Current
Document
Checking links in Selected Web Pages
-
Access Link Checker
-
In the Files pane, Site tab, from the
Current Site pull-down list, select the site that
contains the files
-
From the View pull-down list, select
Local View
-
In the scroll box, select the files and/or folders you want to
check
-
Click CHECK LINKS
» select Check Links For
Selected Files/Folders in Site
The report appears in the Link Checker pane.
Check Links Throughout Your Web Site
-
Access Link Checker
-
In the Files pane, Site tab, from the
Current Site pull-down list, select the site you want to
check
-
Click CHECK LINKS
» select Check Links For Entire
Site
The report appears in the Results pane.
Stopping the Link Checker
If the site or web pages you are checking are extensive and have
a lot of links, you may want to stop Link Checker
either in the interest of time or you may have obtained the
results you were looking for prior to its finishing.
-
While Link Checker is running, in the Results
pane, on the Link Checker tab, click STOP
The Link Checker stops checking and the results to
that point appear in the Results pane.
Saving the Link Checker Results
Once you have the results of the Link Checker, you may
want to save them. The results are saved as a .txt file.
-
Once Link Checker has completed its check, in the
Results pane, on the Link Checker tab, click
SAVE REPORT
The Save As dialog box appears.
-
Using the Save in pull-down list, select a location
for the file
-
In the File name text box, type a name for
the file
-
Click SAVE
Fixing
Broken Links
Once Link Checker has identified broken links, they can
be fixed from either the Results pane or from the
Properties pane.
Fixing Broken Links: Link Checker
-
Using Link Checker, check for broken links
The report appears in the Results pane.
-
In the Broken Links column of the results, click the
broken link
The destination of the broken link is highlighted and the
BROWSE FOR FILE icon
appears
next to the broken link.
-
Type the correct path and file name
OR
To browse to and select the destination file, click
BROWSE FOR FILE
The link is updated.
Fixing Broken Links: Properties Pane
-
Using Link Checker, check for broken links
The report appears in the Results pane.
-
In the Files column, double click the file
The link is highlighted in the Design view and the
link information appears in the Link text box of the
Properties pane.
-
In the Link text box, type the correct link
information
OR
To browse for and select the file, click BROWSE FOR
FILE
OR
To point to the file, click POINT TO FILE and
drag to the correct file in the Files pane
The link is updated.
Editing
Links
You may change the text of a link or change its destination
(i.e., where the viewer is taken after clicking the link).
Changing the Text of a Link
-
Select the linked text you wish to edit
-
Make the desired changes to the text
Changing the Destination of a Link to a
Different Page
-
Click within the existing link
-
In the Properties pane, in the Link text
box, type the correct link information
OR
To browse for and select the file, click BROWSE FOR
FILE
OR
To point to the file, click POINT TO FILE and
drag to the correct file in the Files pane
The link is updated.
Changing the Destination of a Link to a
Different Anchor
-
Click within the existing link
-
To point to an anchor within the current webpage, click
POINT TO FILE and
drag to the correct anchor
OR
In the Properties pane, in the Link text
box, type #anchor_name
EXAMPLE:
#searching
NOTES:
For anchors in another webpage, type the path
and filename followed by #anchor_name.
Anchor names are case sensitive.
The link is updated.
Changing the Destination of a Link
Sitewide
It may be that most or all of your documents have a link to the
same destination (e.g., a national organization). If that link
needs to be updated, you can do so without updating the
individual web pages in your site.
-
In the Files pane, Site tab, from the
Site menu, select Change Link Sitewide...
The Change Link Sitewide dialog box appears.
-
In the Change All Links To text box, type the
current destination of
the link
OR
To select the current destination of the link, click
BROWSE FOR FILE
-
In the Into Links To text box, type the
new destination of the
link
OR
To select the new destination of the link, click
BROWSE FOR FILE
-
Click OK
Removing
Links
There are some situations when you may want to remove a link you
have created.
Removing Links: Modify Menu
-
From the Modify menu, select Remove Link
OR
Press [Ctrl] + [Shift] + [L]
Removing Links: Properties Pane
-
Click within the existing link
-
In the Properties pane, in the Link text
box, select the text
-
Press [Backspace] or [Delete]
|