SiteObject (open)
WHFS site object
Syntax
LOADLIB "mod::publisher/lib/siteapi.whlib";
OBJECTTYPE SiteObjectProperties
- PROPERTY cdnbaseurlIf set, CDN address of this site 
- PROPERTY cdnrootIf available, the CDN address of this site, otherwise the locally hosted URL. 
- PROPERTY idId of the site 
- PROPERTY nameName of the site 
- PROPERTY outputfolderSubfolder within the webserver root 
- PROPERTY outputwebId of the webserver that hosts this site 
- PROPERTY rootId of the root folder of the site 
- PROPERTY rootobjectRoot folder WHFS object 
- PROPERTY sitedesign
- PROPERTY webdesignName of the site design for this site 
- PROPERTY webfeaturesList of webfeatures of this site 
- PROPERTY webrootURL of this site (non-CDN) 
Functions
- STRING FUNCTION MapToCDN(STRING inlink)Maps a locally hosted URL to the equivalent URL on the CDN 
- OBJECT FUNCTION OpenByPath(STRING path, RECORD options)Open a file or folder relative, with a path relative to the site root 
- MACRO Refresh()Reload all properties from the database 
- MACRO SetPrimaryOutput(INTEGER newoutputweb, STRING newoutputfolder)Updates the current webserver and relative url within that webserver where this site is hosted locally. 
- RECORD FUNCTION UpdateSiteMetadata(RECORD metadata)Update the metadata for this site