Dreamweaver.newdocument(), Dreamweaver.newfromtemplate() – Adobe Dreamweaver API Reference CS5 User Manual
Page 263
258
DREAMWEAVER API REFERENCE
Document
Last updated 8/27/2013
Arguments
{filePath}
•
The filePath argument, which is optional, is a string that specifies the filename to which Dreamweaver imports the
template. Express the filePath argument as a URL file string, such as
"file:///c/temp/mydata.txt"
.
Returns
Nothing.
dreamweaver.newDocument()
Availability
Dreamweaver MX.
Description
Opens a document in the current site and starts the New Document dialog box.
Arguments
{bopenWithCurSiteAndShowDialog}
•
The bopenWithCurSiteAndShowDialog argument, which is optional, has a value of
true
or
false
. Specify
true
to
open a document with the current site and to cause the New Document dialog box to appear;
false
otherwise.
Returns
Nothing.
dreamweaver.newFromTemplate()
Availability
Dreamweaver 3.
Description
Creates a new document from the specified template. If no argument is supplied, the Select Template dialog box
appears.
Arguments
{templateURL}, bMaintain
•
The templateURL argument is the path to a template in the current site, which is expressed as a file:// URL.
•
The bMaintain argument is a Boolean value,
true
or
false
, that indicates whether to maintain the link to the
original template.
Returns
Nothing.