Maintaining Your SiteSo just because your site's been uploaded doesn't mean you can hang up your web designer hat and go be a cowboy or a fairy princess. The work of a designer is hardly ever done for long. For example, your client or boss may come along with a round of changes and updates for the sitetime to get back on the job! Fortunately, Dreamweaver makes maintaining your site easy, by providing the tools you need to keep your live site alive and running smoothly. Changing Links Throughout Your SiteSometimes, you may want to change the destination of a hyperlink throughout your sitefor instance, after you delete a file from your site, or after your site is reorganized, with pages added, shuffled around, or in some other way changed. To update all your links, use Dreamweaver's Change Link Sitewide command. To help you update all your links, Dreamweaver provides the Change Link Sitewide command. Here's how to change a link across your site:
Keep in mind that when you use the Change Link Sitewide command, the changes are made to your local site, not to your remote site. Therefore, you'll need to upload to the remote site any files that have changed. To see how to keep your local and remote sites the same, check out "Synchronizing Your Local and Remote Sites" later in this chapter. Hiding FoldersAs you're working on updating your site, you can save a lot of time by enabling cloaking. If a file or folder in your site is cloaked, it will be ignored by certain site functions, such as Put (uploading) and Get (downloading). For example, if you have folders of PDF and MP3 files already uploaded to your web space, there's no sense in uploading them again when you update a few pages on your site, if these files haven't also been changed. So to save time, you can cloak these folders. To take advantage of cloaking, make sure it's turned on in the Site Definition dialog box's Cloaking category. It's on by default, so if you didn't turn it off, you should be fine. If a file or folder in your site is cloaked, it will be ignored by certain site functions. Here's how to cloak a file or folder:
To uncloak a file or folder, select it and choose Site > Cloaking > Uncloak. To uncloak all files or folders for your site, choose Uncloak All. Synchronizing Your Local and Remote SitesOnce you've completed a round of updates, it can be tough to remember which files have been changed and need to be uploaded, and which ones are fine, especially when it's 4 a.m. Take the hassle out of updating with Dreamweaver's Synchronize command. Essentially, in synchronizing, Dreamweaver compares your local site (or selected files within your site) with your remote site. If Dreamweaver finds any files that are more current than their counterparts, it will overwrite those older files so that the local and remote sites are in sync. Very handy. If Dreamweaver finds any files that are more current than their counterparts, it will overwrite those older files. Here's how to synchronize your local and remote sites: Managing the Remote SiteKeeping Your Site Organized," to move a file or folder in your remote site, you drag it to a new location within your site structure directly in the Remote Site column of the Files panel. Dreamweaver will ask you to confirm that you want to move the file. Click Yes to continue. Keep in mind, though, that when you move files in your remote site, Dreamweaver does not automatically update your hyperlinks as it does when you move files in your local site. When you move files in your remote site, Dreamweaver does not automatically update your hyperlinks as it does when you move files in your local site. Wanna organize some files in your remote site? No problemo. In the Files panel's Remote Site column, you can rename files, delete them, or drag them to a new location, as you can see here.
You can also rename a file in your remote site from the Files panel just as you can for your local site, but again Dreamweaver won't update any hyperlinks for you. And what if you want to completely remove your entire site, maybe for heavy-duty maintenance, or perhaps because it's old and no longer needed? To do that, select the remote site folder at the top of the Remote Site list in the Files panel and press the Delete key. Hey, it's quick and humane. |