Table of Contents

Interface SxcGlobalWithCms

$2sxc global interface extending the SxcGlobal when the page feature JsCms is enabled. If the page feature 2sxc.JsCms is not enabled, the window.$2sxc will be a SxcGlobal

Package: Api.Js.SxcJs

Properties

cms

Content Management features on the $2sxc

Declaration
cms: SxcGlobalCms
Property Value
Type Description
SxcGlobalCms

Methods

translate(string)

Will retrieve a resource in the current language. Mainly used for toolbars etc. to support localization. Only available when edit mode is on meaning the page feature JsCms is enabled

Declaration
function translate(key: string)
Parameters
Type Name Description
string key

the key of the resource to translate

Returns
Type Description
string