Changing Link Relative To


It's awkwardly named, but it's useful: you can change the Link Relative To (that is, whether the link is document relative or site root relative) for either a single file, or for the site as a whole. As mentioned in "The Different Types of Links" sidebar, your links can either be document-relative or site root-relative , or even a mix of those on each page.

To change the "Link Relative To" for a link:

1.
In the Property Inspector, click on the Browse for File icon . The Select File dialog will appear (Figure 7.2).

2.
Near the bottom of the dialog, there's a pop-up menu with the label "Relative to." From that pop-up, you can switch between Document and Site Root ( Figure 7.7 ), and the URL for the link will change.

Figure 7.7. Use the Select File dialog to make your link site or document relative.


3.
Click OK to save your changes.

Tip

  • You can also follow the directions (found in Chapter 2) for editing the Site Definition. If you click on the Advanced tab and choose the Local Info category, you'll end up in the same place.


To change the "Link Relative To" for a site:

1.
In the Property Inspector, click on the Browse for File icon . The Select File dialog will appear ( Figure 7.2 ).

2.
Near the bottom of the dialog, there's a link that says "Change default Link Relative To in the site definition." If you click on the link (the part that's blue and underlined ), you'll end up at the Advanced tab for the Site Definition for your site, with the Local Info category chosen ( Figure 7.8 ). From here, you can choose either radio button next to "Links relative to," where the choices are Document or Site root. This will change the link that you're currently modifying, and the default for future links, but it will not change any other existing links on the page or site.

Figure 7.8. Or you can set the "Links relative to" for the entire site.


3.
Click OK to save your changes.




Macromedia Dreamweaver 8 for Windows & Macintosh Visual QuickStart Guide
Macromedia Dreamweaver 8 for Windows & Macintosh
ISBN: 0321350278
EAN: 2147483647
Year: 2005
Pages: 239

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net