Class Site
Index
Constructors
Accessors
Methods
Accessors
id
- get id(): number
Returns number
name
- get name(): string
Site name
Returns string
output Folder
- get outputFolder(): string
Folder inside the webserver where the site is published
Returns string
output Web
- get outputWeb(): null | number
ID of the webserver to which the site is published, null if unpublished
Returns null | number
web Root
- get webRoot(): null | string
Absolute URL where the site is published, or null if the site is not published
Returns null | string
Methods
get Web Design
Get the webdesign for this site
Returns Promise<string>
get Web Features
Get enabled webfeatures for this site
Returns Promise<null | string[]>
open File
- openFile(
path: string,
options: OpenWHFSObjectOptions & { allowMissing: true },
): Promise<null | WHFSFile>Parameters
- path: string
- options: OpenWHFSObjectOptions & { allowMissing: true }
Returns Promise<null | WHFSFile>
Parameters
- path: string
Optional
options: OpenWHFSObjectOptions
Returns Promise<WHFSFile>
open Folder
- openFolder(
path: string,
options: OpenWHFSObjectOptions & { allowMissing: true },
): Promise<null | WHFSFolder>Parameters
- path: string
- options: OpenWHFSObjectOptions & { allowMissing: true }
Returns Promise<null | WHFSFolder>
Parameters
- path: string
Optional
options: OpenWHFSObjectOptions
Returns Promise<WHFSFolder>
update
Update site settings
Parameters
- updates: UpdateableSiteSettings
Returns Promise<{ applied: () => Promise<void> }>
Site primary key (matches root folder id)