Download Manual de Adobe Dreamweaver CS5

Transcript
DRAFT
Last updated 2/17/2010
USING DREAMWEAVER CS5 42
Working with Dreamweaver sites
For example, let’s say that you’ve specified http://www.mysite.com/mycoolsite (the remote server’s site root directory)
as the Web URL, and that you also have an images folder in the mycoolsite directory on the remote server
(http://www.mysite.com/mycoolsite/images). Let’s also say that your index.html file is in the mycoolsite directory.
When you create a site root-relative link from the index.html file to an image in the images directory, the link looks as
follows:
<img src="/mycoolsite/images/image1.jpg" />
This is different from a document-relative link, which would simply be:
<img src="images/image1.jpg" />
The appendage of /mycoolsite/ to the image source links the image relative to the site root, not the document.
Assuming the image stays in the image directory, the file path to the image (/mycoolsite/images/image1.jpg), will
always be correct, even if you move the index.html file to another directory.
For more information, see “Absolute, document-relative, and site root-relative paths” on page 252.
With regard to link verification, the Web URL is necessary for determining whether a link is internal or external to the
site. For example, if your web URL is http://www.mysite.com/mycoolsite, and the link checker finds a link with a URL
of http://www.yoursite.com on your page, the checker determines that the latter link is an external link and reports it
as such. Similarly, the link checker uses the Web URL to determine if links are internal to the site, and then checks to
see if those internal links are broken.
Case-sensitive Links Checking Checks that the case of the links matches the case of the filenames when Dreamweaver
checks links. This option is useful on UNIX systems where filenames are case-sensitive.
Enable Cache Indicates whether to create a local cache to improve the speed of link and site management tasks. If you
do not select this option, Dreamweaver asks you if you want to create a cache again before it creates the site. It is a good
idea to select this option because the Assets panel (in the Files panel group) only works if a cache is created.
Cloaking and other categories
For more information on the Cloaking, Design Notes, File View Columns, Contribute, Templates, or Spry categories,
click the Help button in the dialog box.
Connect to or disconnect from a remote folder with FTP access
❖ In the Files panel:
• To connect, click Connects to Remote Host in the toolbar.
• To disconnect, click Disconnect in the toolbar.
Connect to or disconnect from a remote folder with network access
❖ You don’t need to connect to the remote folder; you’re always connected. Click the Refresh button to see your
remote files.
Set up a testing server
If you plan to develop dynamic pages, Dreamweaver needs the services of a testing server to generate and display
dynamic content while you work. The testing server can be your local computer, a development server, a staging server,
or a production server.
1 Select Site > Manage Sites.
2 Click New to set up a new site, or select an existing Dreamweaver site and click Edit.