[thelist] change the body of a Dreamweaver template?

John Dowdell jdowdell at macromedia.com
Tue Aug 14 15:57:22 CDT 2001


> In one page (only) I want to call a Javascript function with
> an onLoad command from the body tag.

One of the ideas behind templates in Dreamweaver is that you can lock the
entire document, and only leave certain areas available for editing. (It's
a little different than using server-side includes or library items, which
are locked elements within a regular editable document.)

If you'd like to customize one instance of a template master within
Dreamweaver then you can detach that instance from its template master, and
edit the full page normally again. However, this document will no longer
change when all other template instances are changed, because it's no
longer an instance of that template master.

Another approach is to customize locked areas of this template instance in
a regular text editor. (Dreamweaver respects its locked regions, but other
editors see this as just normal text.) If you ever update the template
master and propagate these changes to all template instances then you would
need to redo this external customization, but that's one way to achieve
both goals today.

For future projects, another approach is to use locked and updateable
objects within a regular page... library items can be helpful if you may
want to change the structure of individual documents rather than just one
area within a locked document.

jd





John Dowdell, Macromedia Tech Support, San Francisco CA US
Search technotes: http://www.macromedia.com/support/search/
Offlist email risks capture by the spam filters. I may not see your
email if it's not on the list. Private one-on-one email options are
available via Priority Access: http://www.macromedia.com/support/






More information about the thelist mailing list