This tag creates a new Lasso Site by submitting the Add Site form in ServerAdmin.LassoApp. Uses the same defaults as that form for the optional params, and runs asynchronously.
Parameters
-username
string, required
The ServerAdmin username.
-password
string, required
The ServerAdmin password.
-name
string, required
The name of the new Lasso Site to be created.
-adminusername
string, required
The SiteAdmin username for the new Lasso Site.
-adminpassword
string, required
The SiteAdmin password for the new Lasso Site.
-description
string, optional
An optional description of the new Lasso Site.
-duplicate
integer, optional
The site id of another Lasso Site to duplicate when creating the new one.
-installdocs
boolean, optional
Whether or not to install a copy of the online reference. Defaults to false.
-hostname
string, optional
Initial host name for the site. Defaults to '%.'
-hostroot
string, optional
Initial host root for the site. Defaults to '/%.'
-initialize
boolean, optional
Whether or not to automatically initialize the site. Defaults to false.
-smtphost
string, optional
The SMTP host for the new Lasso Site.
-smtpusername
string, optional
Valid username for the specified SMTP host.
-smtppassword
string, optional
Valid password for the specified SMTP user.
Sample Usage
site_create(
-username='yourserveradminusername',
-password='yourserveradminpassword',
-name='Name of New Site',
-adminusername='Admin User for New Site',
-adminpassword='Admin User Password',
-description='This Lasso Site was made from a ctag.'
);
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.