Variable Modes
Variable modes let you define multiple values for individual variables, creating distinct sets of values (“modes”) that can be switched and applied across a site.
How to use variable modes
Create a variable mode
Create a variable mode for a specific collection using the collection.createVariableMode()
method. All variable modes created with the Designer API will be created as ‘manual’ modes.
Set a mode-specific value on a variable
Once you’ve created a variable mode, you can set a mode-specific value on a variable using the variable.set()
method.