ServerTools.getSiteInfoFromDatasource (Method)
Returns a structure containing the site's root directory, the site's relative URL on the server, and the site's ColdFusion mapping.
Returns:
ServerTools_GetSiteInfoFromDatasource_Result (struct)
Each row of the returned query results has the following fields:
Field Name | Type | Description |
---|---|---|
SiteDirectoryPath | DirectoryPath | The site's root directory. |
SiteMapping | CFMapping | The ColdFusion mapping to the site. |
SiteServerRelativeURL | ServerRelativeURL | The server-relative URL to the site. |
Arguments:
Name | Type | Required | Description |
---|---|---|---|
datasourceName | DatasourceName | Required | A data source name. CommonSpot uses this name to locate site information such as its root directory, the site's relative URL on the server, and the ColdFusion mapping. |
Context:
License Requirements | None |
Permission Requirements | server:ServerMaintenance |
Deny Context | None |
Require Context | None |
Author Lock | (not required) |
Transaction Logging | Transaction logging is disabled for this method |
Customization | Customization is not supported for this method. |
Error Codes:
Code | Error Message |
---|---|
70000 | The specified data source does not point to a valid content database. |
Notes:
None