Does anyone have an idea on how I may go about specifying a configuration value defined in a .config file that is unique to each site in a multi-site Umbraco installation?
For example:
For each site I wish to use a unique account to access a 3rd-party web service. This account is defined in web.config. So, for one site the value is:
<add key=”superWSAccount” value=”uid=Mickey;pwd=Mouse” />And for another site the value is:
<add key=”superWSAccount” value=”uid=Donald;pwd=Duck” />And so on….
I could always create a configuration class (or an elegant XSLT macro) that would take into account the current site instance and do some parsing to come up with the specific value to retrieve from .config:
<add key=”SiteOnesuperWSAccount” value=”uid=Mickey;pwd=Mouse” />
<add key=”SiteTwosuperWSAccount” value=”uid=Donald;pwd=Duck” />But this is getting awfully dependent on lots of string values and settings and oh my….
If you have a completely different approach to this I’d welcome that as well.
Thanks,
-Paul
motusconnect.com :: level-2 certified :: MVP 2008/2009