To avoid broken links in your site, you can activate link management so that Dreamweaver updates links automatically when you make a change. You can also use a visual representation of your site to modify links or you can update all links to a particular file with one change.
Dreamweaver can update links to and from a document whenever you move or rename the document within a local site. This feature works best when you store your entire site (or an entire self-contained section of it) on your local disk. Dreamweaver does not change files in the remote folder until you put the local files on or check them in to the remote server.
To make the updating process faster, Dreamweaver can create a cache file in which to store information about all the links in your local folder. The cache file updates invisibly as you add, change, or delete links to files on your local site.
The Preferences dialog box appears.
The General preferences options appear.
If you select Always, Dreamweaver automatically updates all links to and from a selected document whenever you move or rename it. (For specific instructions on what to do when you delete a file, see Changing a link sitewide.)
If you select Prompt, Dreamweaver first displays a dialog box that lists all the files affected by the change. Click Update to update the links in these files, or click Dont Update to leave the files unchanged.
The Edit Sites dialog box appears.
The Site Definition dialog box appears.
The Site Definition dialog box displays the Local Info options.
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, the cache loads and Dreamweaver updates all the links to the file you just changed. If you click No, the change is noted in the cache, but the cache does not load, and Dreamweaver does not update links.
It may take a few minutes for the cache to load on larger sites; most of this time is spent comparing the time stamps of the files on the local site with the time stamps recorded in the cache to see if the cache is out of date. If you have not changed any files outside Dreamweaver, you can safely click the Stop button when it appears.
You can modify the structure of the site in the site map by adding, changing, and removing links. Dreamweaver automatically updates the site map to display the changes to the site.
NOTE |
|
Use the Files panels Site menu. |
NOTE |
|
Use the Files panels Site menu. |
Removing a link does not delete the file, but removes the link from the HTML source on the page that is pointing to the link.
The Property inspector and the source file containing the link open in the Document window, with the link highlighted.