beautypg.com

Site.editcolumns(), Site.exportsite() – Adobe Dreamweaver API Reference CS5 User Manual

Page 232

background image

227

DREAMWEAVER API REFERENCE

Site

Last updated 8/27/2013

Returns
Nothing.

Enabler
See “

site.canDisplaySyncInfoForFile()

” on page 522.

site.editColumns()

Description
This function displays the Site Definition dialog box, which shows the File View Columns section.

Arguments
None.

Returns
Nothing.

site.exportSite()

Availability
Dreamweaver MX; updated in Dreamweaver CS4.

Description
Exports a Dreamweaver site to an XML file, which can be imported into another Dreamweaver instance to duplicate
the former site.

All the information that is contained in the Site Definition dialog box is saved in an XML file. It includes the list of
cloaked folders and information about the default document type. The exception is that the user can omit the user
login and password when FTP access is set.

Arguments

siteName

,

{askAboutLoginInfo}

,

{warnAboutSCS}

,

{savePath}

The

siteName

argument identifies the site to export. If

siteName

is an empty string, Dreamweaver exports the

current site.

The

askAboutLoginInfo

argument specifies whether the user is shown a dialog box asking them if they want to

save their login information. This argument is optional.

The

warnAboutSCS

argument lets you control whether the user is shown a warning about login information not

being saved if they access their site via source control. This argument is optional.

The

savePath

argument is the local path to a folder (for example,

C:\sites\mySites\

). If you supply a

savePath

,

the .ste file is always saved with the name of the site. This argument is optional.

Returns
A Boolean value:

true

if the named site exists and if the XML file is successfully exported;

false

otherwise.