How To Apply A Template To Pages In Dreamweaver
11.iv. Applying the Template to an Existing Page
Your template file and the index.html page are now two separate documents. To associate index.html with the template, so that the habitation page receives automatic updates when you edit the content in the template, you must now apply the template to the home page.
To practise this, go to the Files panel, and doubleclick index.html. Dreamweaver opens the home page in a new certificate window. (You don't need to close the template's document window, although yous can if you lot want.) And then, from the main menu, choose Modify
Templates
Utilize Template To Page. The Select Template dialog box shown in Figure eleven-14 appears. Click the name of the template that you lot desire to use, and then click Select.
| TIP |
| On the Select Template dialog box, make sure that you bank check the choice for updating the page when the template changes. Otherwise, when you change the content of the template certificate, Dreamweaver volition keep the sometime template content on this particular page of your site. |
Figure 11-fourteen. Select the template to apply
Figure xi-xv. Choose what to exercise with the existing content of the page
In all likelihood, you receive the Inconsistent Region Names dialog box shown in Figure 11-15, which simply means that Dreamweaver isn't sure what to do with the existing content of the domicile folio. It's up to you to explain to Dreamweaver how to handle each inconsistent detail, by moving, deleting, replacing, or ignoring it.
-
You should replace the current document trunk content. Select Document Body from the dialog box, and choose Nowhere from the card.
-
You should movement the current head content to the advisable editable region. Select Document Head from the dialog box, and choose Head from the bill of fare.
| Behind THE SCENES |
| You don't remember calculation an editable region called head because you didn't add together this region! Dreamweaver did it for yous automatically when y'all created your template. |
Click OK, and Dreamweaver applies the template to your home page, equally Effigy 11-16 shows.
Figure xi-sixteen. Dreamweaver applies the template to the dwelling folio
Move the mouse pointer over the layout, and find that the pointer turns into a "no" sign when you hover over whatsoever non-editable region. This is permanent, template-con-trolled contentyou can withal change it, of course, just yous must alter it in the template certificate itself.
Cull File
Save from the main menu to save your changes to the home folio.
How To Apply A Template To Pages In Dreamweaver,
Source: https://flylib.com/books/en/2.29.1.66/1/
Posted by: pricesiand1988.blogspot.com

0 Response to "How To Apply A Template To Pages In Dreamweaver"
Post a Comment