Access sitecore settings programmatically (Sitecore 6)

marto picture marto · Mar 8, 2010 · Viewed 9.1k times · Source

Is there a way to get to sitecore settings through code.

The specific setting I'm interested in is the data Folder path.

Answer

Sean Holmesby picture Sean Holmesby · Oct 4, 2012

If you'd like to get other settings, you may want to try:-

Sitecore.Configuration.Settings.GetSetting("SettingName");

This will work for all sitecore settings, even your custom settings that can be added through the config files in the App_config/Include.