How can I access a setting in a ASCX page template layout? I tried using <%= CMS.DataEngine.SettingsKeyInfoProvider.GetStringValue(SiteContext.CurrentSiteName + ".setting") %>, but it doesn't recognize "GetStringValue".
<%= CMS.DataEngine.SettingsKeyInfoProvider.GetStringValue(SiteContext.CurrentSiteName + ".setting") %>
Hi Tommy,
Use GetValue instead of GetStringValue, because GetStringValue can be obsolete.
Also, maybe you need to add namespace to SiteContext class (CMS.SiteProvider)
Please, sign in to be able to submit a new answer.