Widget properties
Describes Optimizely Configured Commerce widget properties.
When editing theme resources (widgets), the following variables are available using the [{ }] notation:
CMS-specific properties
Property Name | Value |
---|---|
IsViewingMode | Returns true if the current user is viewing the page (and not editing or previewing the page).* |
IsPreviewingMode | Returns true if the current user is previewing the page in the CMS.* |
IsEditingMode | Returns true if the current user is editing the page in the CMS.* |
CurrentPage | Returns an object representing the page the current user is viewing. Properties on this object that are commonly used are listed below. |
*Only one of these properties will return true at a time. The other two will return false.
Common CurrentPage properties
Property Name | Value |
---|---|
Title | Returns the value of the Title property for the current page, as specified in the CMS. |
PageTitle | Returns the value of the PageTitle property for the current page, as specified in the CMS. |
Updated over 1 year ago