Extra function for umbraco library Options
sjors
Posted: Thursday, August 31, 2006 11:35:49 AM

Rank: Fanatic

Joined: 7/20/2006
Posts: 408
Location: Amsterdam
Hi i created a extra function for the Umbraco Library.

Code:

public static string GetConfigValue(string ApplicationValue) {
    return System.Configuration.ConfigurationSettings.AppSettings[ApplicationValue];
}


Generally it reads a value from the appsettings, this can be handy when you need "
global" values which are depending on the environment you are deploying Umbraco.

IE if you have to deploy umbraco on multiple machines, it can be nasty to change all the XSLT files everytime you deploy, instead its easier to read the setting from the web.config.

Maybe it can be implemented int the current source.

sjors
Posted: Monday, November 13, 2006 4:26:03 PM

Rank: Fanatic

Joined: 7/20/2006
Posts: 408
Location: Amsterdam
Would be nice if this can be embedded in the library ;)
hartvig
Posted: Tuesday, November 14, 2006 10:26:47 AM

Rank: Addict

Joined: 3/17/2008
Posts: 952
Location: Nyborg, Denmark
Excellent - add it as a task to codeplex:
http://bugs.umbraco.org


Jeeeez, did I really start this :-)
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.