Beispiel #1
0
        public static IHtmlString GetDictionaryValue(this UmbracoHelper helper, string key, string fallback)
        {
            string value = helper.GetDictionaryValue(key);

            if (!string.IsNullOrWhiteSpace(value))
            {
                return(new HtmlString(value));
            }
            return(new HtmlString(fallback));
        }
Beispiel #2
0
 public static IHtmlString GetDictionaryValue(this UmbracoHelper helper, string key, string fallback, params object[] par)
 {
     return(new HtmlString(string.Format(helper.GetDictionaryValue(key, fallback).ToString(), par)));
 }