Gravatar for nicolas.a.slavik@accenture.com

Question by yonico, May 13, 2015 1:06 PM

Accesing Sitecore.Configuration.Settings.GetSetting from computed field

Hi - I trying to get a value in the following code and seems to be trying to get this from the core database and we will need to do it from web.This is being used in a computed field. var starsImageBaseURL = Sitecore.Configuration.Settings.GetSetting("mysetting");

        var starsRatingMaxValue = Sitecore.Configuration.Settings.GetSetting("mysetting2");

Do you know a way to achieve this?

Gravatar for lbergeron@coveo.com

Comment by Luc Bergeron, May 13, 2015 1:18 PM

Can you explain where the setting is defined? As far as I know, the settings are defined under /sitecore/settings in the config, so I don't see how it could change depending on the database.

0 Reply
Ask a question