@inherits Umbraco.Web.Macros.PartialViewMacroPage @{ var rootCache = UmbracoContext.Current.ContentCache.GetAtRoot(); var exclusions = (List)CurrentPage.Exclusions; var rootList = rootCache.Except(exclusions); } @foreach (var root in rootList) { @root.UrlAbsolute() @root.UpdateDate.ToString("yyyy-MM-ddTHH:mm:00")+00:00 @if (root.HasValue("updateFrequency")) { @root.GetPropertyValue("updateFrequency") } var descendants = root.Descendants().Except(exclusions); foreach (var content in descendants) { @content.UrlAbsolute() @content.UpdateDate.ToString("yyyy-MM-ddTHH:mm:00")+00:00 @if (content.HasValue("updateFrequency")) { @content.GetPropertyValue("updateFrequency") } } }