Document number | Revision |
---|---|
TN11909 | 2 |
Parameters are loaded in the following order.
When a parameter has been loaded then it cannot be overwritten, first occurrence of a parameter wins. Examples on order of precedence:
Highstage supports that different websites and sub-applications runs the same or different code, database, web.config, parameters and schema.
In many situations a company will run the same code, database, web.config but slightly different parameters or schemas.
Different parameters (also SchemaFile parameter) for different web-sites and/or web-applications can be specified in web.config.
Consider the following IIS configuration:
highstage_internal (website)
highstage_external (website)
Differentiation in parameters can be done in web.config. In the sample further down a prefix: specifies a web-site, sub-application or a combination.
For setting a parameter on highstage_internal web-site and all highstage_internal sub-applications use the prefix highstage_internal.
For setting a parameter on all sub-applications in all web-sites use no prefix and make sure the parameter is placed in top of web.config.
For setting a parameter on all ts_sales sub-applications in all web-sites, use the prefix ts_sales.
For setting a parameter on ts_sales sub-application in highstage_external web-site, use the prefix highstage_external/ts_sales.
Sample:
x<appSettings>
<add key="highstage_internal:SchemaFile" value="highstage_internal.schema.xml" />
<add key="highstage_external:SchemaFile" value="highstage_external.schema.xml" />
<add key="highstage_public:WebRootClient" value=" https://highstage.company.com/ts_public" />
<add key="highstage_public:SchemaFile" value="highstage_public.schema.xml" />
<add key="ts_sales:SchemaFile" value="ts_sales.schema.xml" />
<add key="highstage_external/ts_sales:FlashMessage" value="This is highstage_external/ts_sales" />
<!-- FALLBACK VALUES (WITHOUT PREFIX) -->
<add key="WebRootClient" value=" https://highstage.company.com/ts/" />
<add key="StorageURL" value="https://highstage.company.com/files/" />
</appSettings>