siteConfig - Mura Docs v7.0

siteConfig

The siteConfig is a wrapper of Mura's site bean object, and is a subscope object of the Mura Scope. It includes site configuration data collected via the Site Settings section in the administration area, as well as other site-specific information.

Syntax

The following examples illustrate how to "get" and/or "set" various attributes of the siteConfig. Use whichever syntax feels best to you.

Getters

m.siteConfig('attributeName')
m.siteConfig().get('attributeName')
m.siteConfig().get{AttributeName}()
m.siteConfig().getValue('attributeName')

Setters

m.siteConfig('attributeName', 'someValue')
m.siteConfig().set('attributeName', 'someValue')
m.siteConfig().set{AttributeName}('someValue')
m.siteConfig().setValue('attributeName', 'someValue')

Returns

A populated site bean/object.

Usage

Use this scope to access "site" configuration attributes.

Attributes

See the Site Bean section for details on available attributes.