Returns
A string, which specifies the site URL prefix.
Example
The following example gets the site URL prefix for the current document:
var currentDOM = dw.getDocumentDOM();
var sitePrefix = dom.getSiteURLPrefixFromDoc();
dom.localPathToSiteRelative()
Availability
Dreamweaver 8.
Description
This function converts a local file path to a site-relative URI reference.
Arguments
localFilePath
The
localFilePath
local file on your local computer.
Returns
A string, which specifies the site-relative URI.
Example
The following example
var siteRelativeURI =
site.localPathToSiteRelative("C:\Inetpub\wwwroot\siteA\myFile.cfm")
returns
"/myWebApp/myFile.cfm"
specified in the Local Info section of the Site Definition dialog box.
dom.siteRelativeToLocalPath()
Availability
Dreamweaver 8.
Description
This function converts a site-relative URI reference to a local file path.
attribute, which is required, is a string that contains the path to a
, based on your site mappings and the HTTP address
Site functions
257
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?
Questions and answers