User Guide
280 Site
site.getSiteURLPrefix()
Availability
Dreamweaver 8.
Description
Gets the site URL prefix that is extracted from the HTTP Address defined in Local Info
section.
Arguments
None.
Returns
A string that contains the site URL prefix.
Example
sitePrefix = getSiteURLPrefix();
site.importSite()
Availability
Dreamweaver MX.
Description
Creates a Dreamweaver site from an XML file. During import, if the folder that is specified by
the
localroot attribute of the <localinfo> element does not exist on the local computer,
Dreamweaver prompts for a different local root folder. Dreamweaver behaves the same way
when it tries to locate the default images folder that is specified by the
imagefolder attribute
of the
<localinfo> element.
Arguments
fileURL
■ The fileURL argument is a string that contains the URL for the XML file. Dreamweaver
uses this XML file to create a new site. If
fileURL is an empty string, Dreamweaver
prompts the user to select an XML file to import.
Returns
A Boolean value: true if the named XML file exists and if the site is created successfully;
false otherwise.
000_DW_API_Print.book Page 280 Wednesday, July 20, 2005 11:58 AM