Skip to main content
Skip table of contents

SiteModel

Access to properties defined for the site.

implements: hash
bundle: online channel standard (oc)
since 4.4.3
Access to properties defined for the site.

This model is made accessible by the OCFreemarkerExtensionService with the global access path 'cs.site'.

Defined hash keys

cs.site.attributesSiteAttributesHashModel
since 4.4.3
Returns a hash of attributes defined for this site.

cs.site.debug ↦ Boolean
since 4.4.3
Indicates whether the debug flag is activated.

cs.site.defaultLocale ↦ Locale
since 4.4.3
Returns the standard locale of the current Online Channel instance.

cs.site.locales ↦ sequence<Locale>
since 4.4.3
List of the locales which are configured on the Online Channel instance.

cs.site.secureurl ↦ String
since 4.5.3
Returns the secure base URL of the current Website. If this is not defined, undefined will be returned.

cs.site.siteId ↦ String
since 4.4.3
Returns site-ID of the current Online Channel instance.

cs.site.url ↦ String
since 4.4.3
Returns the base URL of the current website.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.