Operation Manual

265
USING DREAMWEAVER
Linking and navigation
Last updated 3/28/2012
4 Click OK.
Create a cache file for your site
1 Select Site > Manage Sites.
2 Select a site, and then click Edit.
3 In the Site Setup dialog box, expand Advanced Settings and select the Local Info category.
4 In the Local Info category, select Enable Cache.
The first time you change or delete links to files in your local folder after starting Dreamweaver, Dreamweaver prompts
you to load the cache. If you click Yes, Dreamweaver loads the cache and updates all the links to the file you just
changed. If you click No, the change is noted in the cache, but Dreamweaver does not load the cache or update links.
It may take a few minutes to load the cache on larger sites because Dreamweaver must determine whether the cache is
up to date by comparing the timestamps of the files on the local site against the timestamps recorded in the cache. If
you have not changed any files outside Dreamweaver, you can safely click the Stop button when it appears.
Re-create the cache
In the Files panel, select Site > Advanced > Recreate Site Cache.
Change a link sitewide
In addition to having Dreamweaver update links automatically whenever you move or rename a file, you can manually
change all links (including e-mail, FTP, null, and script links) so that they point somewhere else.
This option is most useful when you want to delete a file that other files link to, but you can use it for other purposes.
For example, suppose you link the words “this month’s movies” to /movies/july.html throughout your site. On August
1 you would change those links so that they point to /movies/august.html.
1 Select a file in the Local view of the Files panel.
Note: If you are changing an e-mail, FTP, null, or script link, you do not need to select a file.
2 Select Site > Change Link Sitewide.
3 Complete these options in Change Link Sitewide dialog box:
Change All Links To Click the folder icon to browse to and select the target file from which to unlink. If you are
changing an e-mail, FTP, null, or script link, type the full text of the link you are changing.
Into Links to Click the folder icon to browse to and select the new file to link to. If you are changing an e-mail,
FTP, null, or script link, type the full text of the replacement link.
4 Click OK.
Dreamweaver updates any documents that link to the selected file, making them point to the new file, using the path
format already used in the document (for example, if the old path was document-relative, the new path is also
document-relative).
After you change a link sitewide, the selected file becomes an orphan (that is, no files on your local disk point to it).
You can safely delete it without breaking any links in your local Dreamweaver site.
Important: Because these changes occur locally, you must manually delete the corresponding orphan file in the remote
folder and put or check in any files in which links were changed; otherwise, visitors to your site won’t see the changes.