ccrz.cc_CallContext.isConfigTrue
Evaluates whether the current page has a storefront configuration setting with the value
TRUE. This method only considers configuration settings
from the most recently activated configuration cache.
Compatibility
This reference applies to:
Release | Managed Package Version | API Version |
---|---|---|
B2B Commerce for Visualforce Winter ’21 | 4.13 | 12 |
B2B Commerce for Visualforce Spring ’20 | 4.12 | 11 |
B2B Commerce for Visualforce Summer ’19 | 4.11 | 10 |
B2B Commerce for Visualforce Spring ’19 | 4.10 | 9 |
B2B Commerce for Visualforce Summer ’18 | 4.9 | 8 |
Signature
global static Boolean isConfigTrue(String, String)
Inputs
- config
- String that specifies the configuration setting API name to evaluate, such as ct.enabled for the Enabled configuration of the Category Tree module.
- pageUIKey
- A specific page key to evaluate, such as hp for Home page.
Outputs
Boolean
Value | Usage |
---|---|
true | The specified configuration has a case-insensitive variation of TRUE, including true or True. |
false | The specified configuration doesn't exist or doesn't contain a case-insensitive variation of TRUE. |