diff --git a/16/umbraco-cms/reference/querying/umbracohelper.md b/16/umbraco-cms/reference/querying/umbracohelper.md index 877c126f8cc..2a1ce3cbfaa 100644 --- a/16/umbraco-cms/reference/querying/umbracohelper.md +++ b/16/umbraco-cms/reference/querying/umbracohelper.md @@ -132,12 +132,13 @@ Previously the `UmbracoHelper` could be used to run queries on your content, thi Returns a dictionary value(`string`) for the key specified. -```html +```cshtml

@Umbraco.GetDictionaryValue("createdOn"): @Model.CreateDate

``` +### .GetDictionaryValueOrDefault(string key, string altText) Alternatively, you can also specify an `altText` which will be returned if the dictionary value is empty. -```html -

@Umbraco.GetDictionaryValue("createdOn", "Date Created"): @Model.CreateDate

+```cshtml +

@Umbraco.GetDictionaryValueOrDefault("createdOn", "Date Created"): @Model.CreateDate

```