Editing a Dynamic Web Template
In addition to completely changing your Web site using Dynamic Web Templates, you can also make small changes by editing the Dynamic Web Template itself. Any changes will automatically be applied to all pages that the Dynamic Web Template is attached to.
Figure 20.12. When modifying a Dynamic Web Template, FrontPage will ask if you want to update all pages attached to that template.
This is similar to the way that FrontPage users have worked with shared borders in the past, but it is much more powerful and intuitive. Now you can easily make global changes of graphics, color schemes, and just about anything else in one easy step.
Detaching Dynamic Web Templates
If you want to remove the formatting applied by the Dynamic Web Template, select F o rmat, Dynamic Web Template, Detach Dynamic Web Template. All content for the page is preserved, including content provided by the Dynamic Web Template. After detaching the Dynamic Web Template, all content in the page is editable.
Changing Code in an Attached Web Page
As mentioned earlier in "Creating Dynamic Web Templates," any section of an attached page that is outside an editable region is protected. However, it is still possible to access the HTML source for protected areas of the page. When you do switch to a view of the HTML code for the page, any code outside an editable region will be highlighted as shown in Figure 20.13.
Figure 20.13. Code that exists outside editable
If you are editing a page and you encounter a dialog telling you that your change cannot be applied because it is locked by a Dynamic Web Template , see " Cannot Modify an Editable Region Because It's Locked " in the " Troubleshooting " section of this chapter.
Developers Cannot Change the Title of Pages
I have attached a Dynamic Web Template to some pages, and now I cannot change the title of the page. What's going on?
When FrontPage saves a page as a Dynamic Web Template, it adds an editable region called doctitle that encloses the <title> tag of the Web page. This is done so that you can edit the title of the page. However, in some cases the doctitle editable region is not created. In those situations, the <title> tag is in a non-editable region and cannot be changed.
To resolve this issue, change the <title> tag in the Dynamic Web Template from this
<title>Page Title Here</title>
<!-- #BeginEditable "doctitle" --> <title>Page Title Here</title> <!-- #EndEditable -->
This adds a new editable region called
Make sure that you make this change in the Dynamic Web Template file and not the Web page to which the Dynamic Web Template is attached.
Cannot Modify an Editable Region Because It's Locked
I am trying to add a table to an editable region, and I'm being told that FrontPage will not accept my change because the code is locked by a Dynamic Web Template. Why is it doing that?
Certain edits are not allowed in an editable region, and inserting tables is one of them. You can change the size of text, whether the text is bold or italic, and the font, but you cannot perform any layout functions on that text (such as adding a table), and you can't apply any styles to that text.