createSiteModelFromTemplate

Function

Convert a Site Template into a Site Model This will create Hub Teams and an Initiative, depending on licensing and privs.

The subdomain for the site will be constructed from the settings.solution.title unless that contains unicode chars. In that case the initial subdomain will be site and ensureUniqueDomainName will increment it as necessary (i.e. site-1, site-2 etc)

This returns the Model that still needs to be saved!

Parameters

Parameter Type Default Notes
template Required IModelTemplate

Site Template

settings Required any

Adlib interpolation hash

transforms Required any

hash of transform functions

hubRequestOptions Required IHubRequestOptions

Returns

any

Function defined in sites/src/create-site-model-from-template.ts:38