Site Bean
The site
bean/object includes site configuration data collected via the Site Settings section in the administration area, as well as other site-specific information.
See the Mura Scope's siteConfig subscope to access the same information when working with the site being used in the current request.
Syntax
The following examples illustrate how to "get" and/or "set" various attributes of the site
bean/object. Use whichever syntax feels best to you.
Loading the Bean
You should load a site
bean/object by a SiteID. You can use any SiteID you wish, or simply use the session.siteid
when you wish to work with the site associated with the existing request.
<cfset siteBean = m.getBean('site').loadBy(siteid=session.siteid)>
Once you have a variable to reference the desired bean/object, you can use the example Getters and Setters below.
Getters
siteBean.get('attributeName') siteBean.get{AttributeName}() siteBean.getValue('attributeName')
Setters
siteBean.set('attributeName', 'someValue') siteBean.set{AttributeName}('someValue') siteBean.setValue('attributeName', 'someValue')
Usage
Use the site
bean/object to access and/or manipulate "site" configuration attributes.
Attributes
The table below lists available attributes.
Attribute |
---|
accountactivationscript |
addobjects |
admanager |
advertiseruserpoolid |
baseid |
cache |
cachecapacity |
cachefactories |
cachefreememorythreshold |
categorypoolid |
columncount |
columnnames |
commentapprovaldefault |
contact |
contactaddress |
contactcity |
contactemail |
contactname |
contactphone |
contactstate |
contactzip |
contentapprovalscript |
contentcanceledscript |
contentpendingscript |
contentpoolid |
contentrejectionscript |
contentrenderer |
contenttypefilepathlookup |
contenttypeloopuparray |
customtaggroups |
datacollection |
deploy |
displayobjectfilepathlookup |
displayobjectlookup |
displayobjectloopuparray |
displaypoolid |
domain |
domainalias |
editprofileurl |
emailbroadcaster |
emailbroadcasterlimit |
enablelockdown |
enforcechangesets |
enforceprimarydomain |
errors |
exportlocation |
extendautocomplete |
extenddata |
extenddatatable |
extendsetid |
extranet |
extranetpublicreg |
extranetpublicregnotify |
extranetssl |
feedmanager |
filepoolid |
frommuracache |
googleapikey |
haschangesets |
hascomments |
haslockablenodes |
hassharedfilepool |
instanceid |
isnew |
isremote |
javalocale |
jsdatekey |
jsdatekeyobjinc |
jsonapi |
largeimageheight |
largeimagewidth |
lastdeployment |
locking |
loginurl |
mailinglistconfirmscript |
mailserverip |
mailserverpassword |
mailserverpopport |
mailserversmtpport |
mailserverssl |
mailservertls |
mailserverusername |
mailserverusernameemail |
mediumimageheight |
mediumimagewidth |
nextn |
orderno |
pagelimit |
placeholderimgext |
placeholderimgid |
primarycolumn |
privateuserpoolid |
publicsubmission |
publicsubmissionapprovalscript |
publicuserpoolid |
rbfactory |
recaptchalanguage |
recaptchasecret |
recaptchasitekey |
reminderscript |
remotecontext |
remoteport |
resourcedomain |
resourcessl |
sendauthcodescript |
sendloginscript |
showdashboard |
site |
siteid |
sitelocale |
smallimageheight |
smallimagewidth |
sourceiterator |
subtype |
tagline |
theme |
themelookup |
themerenderer |
type |
usedefaultsmtpserver |
usessl |
viewdepth |