The head editable region may not appear very useful during the template creation phase, but when you
begin creating documents based on a template it really shines. New
tags, CSS style links and rules,
and behavior-added JavaScript all take advantage of the head editable region.
Creating links in templates
A common problem that designers encounter with Dreamweaver templates centers on links. People often
add links to their templates and discover that these links do not work when new pages are derived from the
templates. The main cause of this error is linking to a non-existent page or element by hand??”that is, typing
in the link, rather than using the Select File dialog box to choose it. Designers tend to set the links
according to their final site structures, without taking into account how templates are stored in
Dreamweaver.
Recommended linking technique
For example, when creating a template, suppose you have links to three pages??”products.htm,
services.htm, and about.htm??”all in the root of your site. Both products.htm and
services.htm have been created, so you click the Folder icon in the Property inspector and select those
files. Dreamweaver inserts those links as follows: ../products.htm and ../services.htm. The ../
indicates the directory above the current directory??”which makes sense only when you remember that all
templates are stored in a subfolder of the site root called Templates.
Pages:
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503