Posts

Showing posts from March, 2020

Umrbaco 8 Date Formatting

Format a Date in Umbraco 8 @(Model.Value<DateTime>("publicationDate").ToString("dd MMMM yyyy")) or in a foreach loop: @(item.Value<DateTime>("publicationDate").ToString("dd MMMM yyyy"))

Umbraco 8 Umbraco Navi Hide - Hide Page in foreach

Example of using umbracoNaviHide in Umbraco 8: @foreach (var item in @Model.AncestorOrSelf(3).Children() .Where(x => x.IsVisible())) { }