With custom rules, you can use the same patch files on different Sitecore instances, and just change the rules in the
web.config file in order to enable different configurations on the individual instance.
- In the
web.configfile, in the
<appSettings>section, add a line specifying the rule. For example, the following adds a rule named
localenvand assigns the value
<add key="localenv:define" value="QA">
- To specify multiple values, enter the values separated by commas. For example, the following assigns the values
<add key="localenv:define" value="QA,Test,Development">
Rule values are not case sensitive. However, it is best practice to use the same case whenever a key is referenced.
If the rule contains multiple values, you must separate the values with commas.
When Sitecore reads the rule definition, it ignores any blank spaces between the individual values. For example,
QA, Test and
QA,Test are both valid.