User Guide

Library and template functions 385
dom.applyTemplate()
Availability
Dreamweaver 3.
Description
Applies a template to the current document. If no argument is supplied, the Select Template
dialog box appears. This function is valid only for the document that has focus.
Arguments
{templateURL}, bMaintainLink
The templateURL argument is the path to a template in the current site, which is
expressed as a file:// URL.
The bMaintainLink argument is a Boolean value that indicates whether to maintain the
link to the original template (
true) or not (false).
Returns
Nothing.
Enabler
See dom.canApplyTemplate()” on page 552.
dom.detachFromLibrary()
Availability
Dreamweaver 3.
Description
Detaches the selected library item instance from its associated LBI file by removing the
locking tags from around the selection. This function is equivalent to clicking Detach from
Original in the Property inspector.
Arguments
None.
Returns
Nothing.
000_DW_API_Print.book Page 385 Wednesday, July 20, 2005 11:58 AM